matrei commented on code in PR #16428:
URL: https://github.com/apache/grails-core/pull/16428#discussion_r4133852280
##########
build-logic/docs-core/src/main/groovy/org/apache/grails/gradle/tasks/bom/PropertyNameCalculator.groovy:
##########
@@ -84,10 +84,17 @@ class PropertyNameCalculator {
}
ExtractedDependencyConstraint calculate(String groupId, String artifactId,
String version, boolean isPlatform) {
+ // a derived BOM re-declares the platforms it imports as plain
constraints, which must carry
+ // the same property as the import so that overriding it moves both
+ String coordinates = "$groupId:$artifactId:$version" as String
Review Comment:
There is no need to explicitly coerce (`as String`) as the variable is
already typed and will be implicitly coerced.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]