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


##########
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 - the field is a property.  The others 
are updated.



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