-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Use provided scope for jboss-logging-annotations dependency #46681
base: main
Are you sure you want to change the base?
Use provided scope for jboss-logging-annotations dependency #46681
Conversation
Thanks for your pull request! Your pull request does not follow our editorial rules. Could you have a look?
This message is automatically generated by a bot. |
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.
Thanks! I added some comments.
bom/application/pom.xml
Outdated
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<annotationProcessorPaths> | ||
<annotationProcessorPath> | ||
<groupId>org.jboss.logging</groupId> | ||
<artifactId>jboss-logging-processor</artifactId> | ||
<version>${jboss-logging-annotations.version}</version> | ||
</annotationProcessorPath> | ||
</annotationProcessorPaths> | ||
</configuration> | ||
</plugin> |
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.
Plugin configuration is not inherited from BOM so I think this should go away.
bom/application/pom.xml
Outdated
<dependency> | ||
<groupId>org.jboss.logging</groupId> | ||
<artifactId>jboss-logging-processor</artifactId> | ||
<version>${jboss-logging-annotations.version}</version> |
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.
This needs to stay around. It's used by the recent versions of the Maven compiler plugin to define the default version of the annotation processor.
<groupId>org.jboss.logging</groupId> | ||
<artifactId>jboss-logging-processor</artifactId> | ||
<version>${jboss-logging-annotations.version}</version> | ||
<scope>provided</scope> |
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.
We usually refrain from adding scopes in the BOM as it makes things less flexible (e.g. if for some reasons, you want to use another scope).
Now I'm not entirely sure using another scope makes sense in this very specific case. WDYT @dmlloyd ?
86bb1e5
to
51ece6e
Compare
I removed the commit that removes the |
Fixes #45761
This PR adds the provided scope to the dependency
jboss-logging-annotations
I also added a commit that pass the dependency
jboss-logging-processor
as an argument toannotationProcessorPaths
.