Skip to content

Commit

Permalink
Also publish SHA 256 and 512 checksums. (#198)
Browse files Browse the repository at this point in the history
* Also publish SHA 256 and 512 checksums.

Signed-off-by: dblock <[email protected]>

* Remove sonatype staging.

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Oct 6, 2021
1 parent 0e9ae1f commit ff7c1c9
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions notification/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,25 @@ 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) {
classifier = 'sources'
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 {
Expand Down Expand Up @@ -109,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)
Expand Down

0 comments on commit ff7c1c9

Please sign in to comment.