-
-
Notifications
You must be signed in to change notification settings - Fork 971
#15302 - fix(breaking) property name resolution when generating grails boms #15319
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
base: 7.0.x
Are you sure you want to change the base?
Conversation
|
I am seeing these changes between the two files: 1. Property name standardization (hyphen vs dot)
2. Specific property value or reference changes
3. Hard-coded snapshot versions for certain Grails artifacts
|
|
Converted back to draft, the following issues exist:
|
* correct incorrect keys that had partial matches * map profile properties to have a prefix of 'grails-profile' * remove duplicate entries * fix versions adoc to match pom values
|
@jamesfredley I believe these issues are fixed now. After diffing the resulting pom files, they look better to me. Here's the adoc: |
|
@matrei I spoke to @jamesfredley about this change, I think it's worth fixing the bom in a 7.0.6, but it would mean a breaking change - the property names would go back to the key values in dependencies.gradle. |
|
Eventually, I need to remove the fallback code that allows partial property matching. We should error instead if the key isn't found. I'm leaving that for when I rewrite this for Gradle 9. |
|
My outstanding concern is documentation. Here is a stab at all of the changes. In general this fixes the two version for rxjava which were incorrect and applies logically consistent changes to the grails-bom (IE. what we would want/expect). This will only break an application using one of the version properties, which has been removed, in Spring Dependency Management Plugin. 1. Property Name Standardization and Removal of Duplicates
2. Renaming and Prefixing of Profile-Related Properties
3. Removal of Redundant or Unused Properties
4. Specific Property Value Changes
5. Additions and Refinements in
|
|
I've added the documentation as suggested (with some updates). Please take a look @jamesfredley |
This ended up being a breaking change. The artifact id was driving the version name instead of the calculate property name. I can change all of the property names to match to minimize this change, or we can go with the property name fix.
This is the current grails-bom:
https://central.sonatype.com/artifact/org.apache.grails/grails-bom
This is with my changes:
update-grails-bom.xml
Take a look at dependencies.gradle and you'll notice that the key of the maps are now correctly the property name instead of artifact id.
Other changes after the initial feedback: