This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git
The following commit(s) were added to refs/heads/master by this push:
new e62aacfd minor refactor: adjust so signing and checksums work
(probably can be refactored to use maven publish)
e62aacfd is described below
commit e62aacfdf18fe62e70c6a6b8620675b49d9b7aa5
Author: Paul King <[email protected]>
AuthorDate: Sat Jan 18 15:19:33 2025 +1000
minor refactor: adjust so signing and checksums work (probably can be
refactored to use maven publish)
---
buildSrc/src/main/groovy/geb.source-distribution.gradle | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/buildSrc/src/main/groovy/geb.source-distribution.gradle
b/buildSrc/src/main/groovy/geb.source-distribution.gradle
index bb6d45c2..f9a9512f 100644
--- a/buildSrc/src/main/groovy/geb.source-distribution.gradle
+++ b/buildSrc/src/main/groovy/geb.source-distribution.gradle
@@ -43,6 +43,18 @@ tasks.register('distSrc', Zip) {
with srcSpec
}
+tasks.register('createChecksums') {
+ doLast {
+ distSrc.outputs.files.each { file ->
+ ['md5', 'sha1', 'sha256', 'sha512'].each { alg ->
+ ant.checksum file: file, algorithm: alg
+ }
+ }
+ }
+}
+
+distSrc.finalizedBy(createChecksums)
+
signing {
- tasks.named('distSrc')
+ sign distSrc
}