Skip to content

Commit

Permalink
Publish source and javadoc checksums.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@dblock.org>
  • Loading branch information
dblock committed Oct 6, 2021
1 parent 151646f commit 1c73010
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,21 +146,31 @@ compileTestKotlin {

shadowJar {
classifier = null
}

shadowJar.doLast {
ant.checksum algorithm: 'md5', file: it.archivePath
ant.checksum algorithm: 'sha1', file: it.archivePath
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

doLast {
ant.checksum algorithm: 'md5', file: it.archivePath
ant.checksum algorithm: 'sha1', file: it.archivePath
}
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir

doLast {
ant.checksum algorithm: 'md5', file: it.archivePath
ant.checksum algorithm: 'sha1', file: it.archivePath
}
}

publishing {
Expand Down

0 comments on commit 1c73010

Please sign in to comment.