mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-21 17:29:55 +00:00
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:
parent
54aecd1eea
commit
d8cbd263dd
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user