Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66303

Prepare GitLab Authentication for core Guava upgrade

    • 1.12

      See JENKINS-65988. Jenkins core is using Guava 11.0.1, which was released on January 9, 2012. Jenkins core would like to upgrade to Guava 30.1.1, which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.

      In particular, this plugin has been identified as using the com.google.common.cache.Cache#get(K key) API, which has been removed between Guava 11.0.1 and latest. The removal took place in Guava 12.0.

      To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The recommendation is for plugins to migrate from Guava's cache to Caffeine via the Jenkins Caffeine API plugin.

      For the most part, the migration is a trivial matter of replacing imports of com.google.common.cache.Cache with imports of com.github.benmanes.caffeine.cache.Cache and imports of com.google.common.cache.CacheBuilder with imports of com.github.benmanes.caffeine.cache.Caffeine. For examples of how to do this, see these existing PRs:

          [JENKINS-66303] Prepare GitLab Authentication for core Guava upgrade

          Basil Crow created issue -
          Basil Crow made changes -
          Remote Link New: This issue links to "jenkinsci/gitlab-oauth-plugin#31 (Web Link)" [ 26846 ]
          Basil Crow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Basil Crow made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Basil Crow made changes -
          Assignee Original: Mohamed El Habib [ elhabib_med ] New: Basil Crow [ basil ]
          Basil Crow made changes -
          Summary Original: Prepare Gitlab Authentication for core Guava upgrade New: Prepare GitLab Authentication for core Guava upgrade
          Basil Crow made changes -
          Released As New: 1.12
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Basil Crow made changes -
          Labels New: JEP-233
          Basil Crow made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: