-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Correct filtering syntax and hardcode variable that cannot be resolved #35275
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just FYI, @holly-cummins, you don't have to do it again. The properties are defined here https://github.com/quarkusio/quarkus/blob/main/build-parent/pom.xml#L33-L35
I would do it to all the projects, TBH. I am not sure we are keeping all these plugin versions in-sync with the main build. If they are different for no specific reason, this causes extra artifact resolutions, take space on FS and time to download.
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.
Ah, it's the unexpected wording of the main property that meant it didn't resolve, and when I searched for it I couldn't find it. All I found were other resource-filtered projects that were also hardcoding the property value.
The main pom uses
version.surefire.plugin
rather thansurefire-plugin.version
, which is the word-order we use for most other properties (such as 'quarkus.version`).It looks like we're pretty inconsistent across the codebase.
version.surefire.plugin
in 20 placessurefire-plugin.version
in 39 placesSo
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 looked at the other two properties in that file which use the 'non-standard' word order,
version.exec.plugin
andversion.enforcer.plugin
. It looks like the unexpected word order is because we're inheriting from jboss.It might be that the pragmatic thing to do is define a centralised
surefire-plugin.version
that's set to have the value ofversion.surefire.plugin
. Then we can stay in sync with the jboss-inherited content, while improving discoverability.The
version.exec.plugin
is only used in one other place, and that place hardcodes a value anyway. Theversion.enforcer.plugin
is used in 12 places, but actually, every single place it's used except one is to hardcode a value. We also have a similarenforcer-api.version
property which is used in a few places.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.
+1