jdaugherty commented on code in PR #14324:
URL: https://github.com/apache/grails-core/pull/14324#discussion_r2054206044


##########
grails-gradle/docs-core/src/main/groovy/org/apache/grails/gradle/tasks/bom/CoordinateHolder.groovy:
##########
@@ -0,0 +1,17 @@
+package org.apache.grails.gradle.tasks.bom
+
+import groovy.transform.CompileStatic
+import groovy.transform.EqualsAndHashCode
+import groovy.transform.ToString
+
+@EqualsAndHashCode(includes = ['groupId', 'artifactId'])
+@CompileStatic
+@ToString
+class CoordinateHolder {
+    String groupId
+    String artifactId
+
+    String getCoordinatesWithoutVersion() {
+        "${groupId}:${artifactId}" as String

Review Comment:
   You do need to cast, as it will be a groovy string and this fixes 
compilestatic



-- 
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]

Reply via email to