-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Default config should not include test classpath #505
base: master
Are you sure you want to change the base?
Default config should not include test classpath #505
Conversation
Hi @blommish Thank you for your PR. Could you please address the DCO failure? |
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.
Hi @blommish Thank you for your PR. There is problem here that this is quite a breaking change of the plugin behaviour. So I believe the best option would be to wait until the next major version release.
@@ -135,6 +134,7 @@ public CycloneDxTask() { | |||
componentVersion.convention(getProject().getVersion().toString()); | |||
|
|||
includeConfigs = getProject().getObjects().listProperty(String.class); | |||
includeConfigs.addAll("runtimeClasspath", "compileClasspath", "annotationProcessor"); |
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.
I think it should all configurations, but test ones. Otherwise it skips not only tests.
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.
Not sure I understand what you mean.
I agree that it is an breaking change.
The issue was that the plugin contains configs that are not included in the maven plugin. #416 (comment)
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.
The problem is that you cannot fully match maven plugin behavior just because it's a different build system. Using Gradle, you can custom configurations and use them during runtime. Using proposed changed to the default config, plugin will skip it which is incorrect.
…e overwritten Signed-off-by: Johan Blomgren <[email protected]>
- Adding runtimeClasspath, compileClasspath and annotationProcessorPath to default includeConfigs Signed-off-by: Johan Blomgren <[email protected]>
a8b7285
to
046f7af
Compare
Signed-off-by: Johan Blomgren <[email protected]>
Connected to
https://github.com/CycloneDX/cyclonedx-maven-plugin does not include the test scope as default config.
What has been done
set
methods overwrite previous values and not useaddAll
"runtimeClasspath", "compileClasspath", "annotationProcessor"
as default configs.For discussion:
Would the classpaths I've added be enough? Or should others also be added? Buildscript, plugin and sourceSet.
I'm not totally sure just having the 3 I've added is enough.
Or would it be better to just add the test-paths to ignore?
I'll wait to update the readme until I know if this could be used or not.