There is no usages of the library outside of the CredentialsListBoxModel class, so it seems a bit overkill to use the library. Removing it to be compatible with Java 21 seems quicker.
Testing done
Ran mvn verify with Java 21, no issue.
Ran mvn hpi:run using Java 21 but faced issue when trying to use the plugin in Google Compute Engine where creating a compute-engine node in Jenkins yields an issue about not finding configure-entries.jelly for ComputeEngineInstance class.
### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue
Related to JENKINS-71922
The usage of Lombok was introduced in https://github.com/jenkinsci/google-oauth-plugin/commit/5972f753b7c3b92f863f1a7c3e48f66eb604174e. The dependency was used only to remove a few lines of code which can generally be generated by any IDE.
There is no usages of the library outside of the
CredentialsListBoxModel
class, so it seems a bit overkill to use the library. Removing it to be compatible with Java 21 seems quicker.Testing done
Ran
mvn verify
with Java 21, no issue. Ranmvn hpi:run
using Java 21 but faced issue when trying to use the plugin in Google Compute Engine where creating a compute-engine node in Jenkins yields an issue about not findingconfigure-entries.jelly
forComputeEngineInstance
class.