-
Notifications
You must be signed in to change notification settings - Fork 54
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
Don't declare sample plugin transitive dependencies #2470
Don't declare sample plugin transitive dependencies #2470
Conversation
Removes declarations of: * cloudbees-folder * favorite * pipeline-groovy-lib * pipeline-model-definition * variant * workflow-basic-steps * workflow-durable-task-step * workflow-multibranch Attempting to follow the guidance from the README that says: > Avoid adding transitive dependencies to sample-plugin/pom.xml. It > is supposed to look as much as possible like a real plugin, and a real > plugin should only declare its direct dependencies and not its transitive > dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for full-test
on this I think, since any changes to sample-plugin/
are already tested without full-test
.
Thanks. I'll cancel the CI job, remove the |
Thanks. There is no rigid guidance for plugin POMs regarding transitive vs. direct dependencies. |
Plugin has a declarative Pipeline test in DeclarativePipelineTest.java jenkinsci#2470 (comment) provides more reasoning why the dependency should be included. This reverts part of commit acad2e3.
Plugin has a declarative Pipeline test in DeclarativePipelineTest.java #2470 (comment) provides more reasoning why the dependency should be included. This reverts part of commit acad2e3.
Don't declare sample plugin transitive dependencies
Removes the following transitive dependency declarations from the sample plugin:
Each of those plugins is already a dependency of another plugin declared in the pom file of the sample plugin. No need to declare the plugin if it is a dependency of an already declared plugin.
Attempting to follow the guidance from the README that says:
Testing done
mvn clean verify
passes as well as the variants using profiles likemvn -P 2.387.x verify
Submitter checklist