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

Remove dependency on symbol-annotation #39

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

basil
Copy link
Contributor

@basil basil commented Aug 22, 2023

Fixes #27 by removing the dependency on symbol-annotation. We do this only for the org.openrewrite.jenkins.ModernizePlugin recipe and not the org.openrewrite.jenkins.ModernizePluginForJava8 recipe because the latter only bumps the core version up to 2.346.3, and a recent version of symbol-annotation is only delivered by core as of 2.349. We tested this by running org.openrewrite.jenkins.ModernizePlugin against jenkinsci/artifact-repository-parameter-plugin@b0a0a4e and verifying that the symbol-annotation dependency was successfully removed. We did not add any test coverage in this repository because org.openrewrite.java.RemoveDependency is upstream functionality that is already tested upstream, and similar usages in this repository (e.g., the usage of org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId to change mockito-inline to mockito-core a few lines above this change) don't have test coverage in this repository either.

@sghill
Copy link
Collaborator

sghill commented Aug 22, 2023

Thanks for the PR!

Once enhancement we can make later is to check the Jenkins version is >= 2.349 so it can be run standalone as well.

@sghill sghill merged commit 56e6f2d into openrewrite:main Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove dependency on symbol-annotation from plugins
2 participants