From 62789eaec91f4c2d836a61db6c243c56201808ae Mon Sep 17 00:00:00 2001 From: dblock Date: Wed, 6 Oct 2021 19:24:09 +0000 Subject: [PATCH 1/2] Also publish SHA 256 and 512 checksums. Signed-off-by: dblock --- notification/build.gradle | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/notification/build.gradle b/notification/build.gradle index 471565529..5241b13c4 100644 --- a/notification/build.gradle +++ b/notification/build.gradle @@ -45,11 +45,6 @@ shadowJar { relocate 'org.apache.commons.logging', 'org.opensearch.notification.repackage.org.apache.commons.logging' relocate 'org.apache.commons.codec', 'org.opensearch.notification.repackage.org.apache.commons.codec' classifier = null - - doLast { - ant.checksum algorithm: 'md5', file: it.archivePath - ant.checksum algorithm: 'sha1', file: it.archivePath - } } task sourcesJar(type: Jar) { @@ -57,19 +52,18 @@ task sourcesJar(type: Jar) { from sourceSets.main.allJava } -sourcesJar.doLast { - ant.checksum algorithm: 'md5', file: it.archivePath - ant.checksum algorithm: 'sha1', file: it.archivePath -} - task javadocJar(type: Jar) { classifier = 'javadoc' from javadoc.destinationDir } -javadocJar.doLast { - ant.checksum algorithm: 'md5', file: it.archivePath - ant.checksum algorithm: 'sha1', file: it.archivePath +tasks.withType(Jar) { task -> + task.doLast { + ant.checksum algorithm: 'md5', file: it.archivePath + ant.checksum algorithm: 'sha1', file: it.archivePath + ant.checksum algorithm: 'sha-256', file: it.archivePath, fileext: '.sha256' + ant.checksum algorithm: 'sha-512', file: it.archivePath, fileext: '.sha512' + } } publishing { From fb5cb4ed88e442e908f33b298eaec53d1cc788e0 Mon Sep 17 00:00:00 2001 From: dblock Date: Wed, 6 Oct 2021 19:49:14 +0000 Subject: [PATCH 2/2] Remove sonatype staging. Signed-off-by: dblock --- notification/build.gradle | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/notification/build.gradle b/notification/build.gradle index 5241b13c4..62c2acae7 100644 --- a/notification/build.gradle +++ b/notification/build.gradle @@ -103,17 +103,6 @@ publishing { } } - repositories { - maven { - name = "sonatype-staging" - url "https://aws.oss.sonatype.org/service/local/staging/deploy/maven2" - credentials { - username project.hasProperty('ossrhUsername') ? project.property('ossrhUsername') : '' - password project.hasProperty('ossrhPassword') ? project.property('ossrhPassword') : '' - } - } - } - // TODO - enabled debug logging for the time being, remove this eventually gradle.startParameter.setShowStacktrace(ShowStacktrace.ALWAYS) gradle.startParameter.setLogLevel(LogLevel.DEBUG)