matrei commented on code in PR #14836:
URL: https://github.com/apache/grails-core/pull/14836#discussion_r2174882613


##########
grails-forge/gradle/publish-config.gradle:
##########
@@ -29,4 +31,84 @@ extensions.configure(GrailsPublishExtension) {
     it.developers = findProperty('pomDevelopers') as Map<String, String> ?: 
[puneetbehl: 'Peter Behl']
     it.pomCustomization = findProperty('pomCustomization') as Closure
     it.publishTestSources = findProperty('pomPublishTestSources') ?: false
+}
+
+apply plugin: 'org.gradle.crypto.checksum'
+
+afterEvaluate {
+    if (project.plugins.hasPlugin('signing')) {
+        if(System.getenv('TEST_BUILD_REPRODUCIBLE')) {
+            project.logger.lifecycle("Signing is disabled for this build to 
test build reproducibility.")
+            project.tasks.withType(Sign).configureEach {
+                it.enabled = false
+            }
+        }
+    }
+    if (project.plugins.hasPlugin("maven-publish")) {
+        def checksumTask = tasks.register("publishedChecksums", Checksum)
+        checksumTask.configure { Checksum check ->
+            check.checksumAlgorithm = Checksum.Algorithm.SHA512
+            
check.outputDirectory.set(project.layout.buildDirectory.dir("checksums"))

Review Comment:
   > Intellij warns on the groovy setter
   
   That's peculiar, it's the other way around for me.
   
![Screenshot_20250630_134426](https://github.com/user-attachments/assets/a51ae23c-7833-405a-b815-68f27d77ebdf)
   
   
   ```groovy
   check.outputDirectory = layout.buildDirectory.dir('checksums')
   ```
   Works fine for me. Groovy setter should work with Property.
   What's the warning message from Intellij?



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