Needed to rework the publish as the signed portion wasn't being

uploaded; thank goodness others had working samples to look at!
This commit is contained in:
Rob Greene 2022-01-22 20:55:06 -06:00
parent 54aecd1eea
commit d8cbd263dd

View File

@ -38,23 +38,22 @@ javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
java {
withSourcesJar()
withJavadocJar()
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
signing {
// Only sign if we're uploading...
required {
isReleaseVersion && gradle.taskGraph.hasTask("publish")
}
sign configurations.archives
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
groupId = "net.sf.applecommander"
artifactId = "AppleCommander"
@ -94,3 +93,7 @@ publishing {
}
}
}
signing {
sign publishing.publications.mavenJava
}