Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-66303] Prepare Gitlab Authentication for core Guava upgrade #31

Merged
merged 1 commit into from
Sep 12, 2021

Conversation

basil
Copy link
Member

@basil basil commented Aug 8, 2021

See JENKINS-66303 and 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.

Untested.

CC @mohamedelhabib

@basil
Copy link
Member Author

basil commented Aug 21, 2021

@mohamedelhabib Would it be possible to take a look at this PR? This would help the Jenkins core developers proceed with the Guava upgrade.

@skorhone
Copy link
Contributor

@basil I have a feeling that this project has been abandoned. I have had a pull request pending for what I consider a critical security issue for a while.

@basil
Copy link
Member Author

basil commented Aug 27, 2021

@skorhone Since you have a GitLab installation with which to test against, why don't you open a PR at jenkins-infra/repository-permissions-updater to adopt this plugin? Then you can merge and release both your PR and this one. I can be your mentor from the Jenkins community.

@basil basil merged commit 1062ab9 into jenkinsci:master Sep 12, 2021
@basil basil deleted the guava branch September 12, 2021 15:12
@basil
Copy link
Member Author

basil commented Sep 12, 2021

Released in 1.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants