Build file cleanup
This commit is contained in:
parent
6671b4a7e5
commit
19206f45ad
|
@ -470,7 +470,7 @@ task javaDocJar(type: Jar) {
|
||||||
// for testing, we don't publish to maven central, but only to local maven
|
// for testing, we don't publish to maven central, but only to local maven
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
SystemTray(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
|
|
||||||
artifact(javaDocJar)
|
artifact(javaDocJar)
|
||||||
|
@ -539,7 +539,7 @@ nexusStaging {
|
||||||
|
|
||||||
signing {
|
signing {
|
||||||
required {hasProperty('sonatypeUsername')}
|
required {hasProperty('sonatypeUsername')}
|
||||||
sign publishing.publications.SystemTray
|
sign publishing.publications.maven
|
||||||
}
|
}
|
||||||
|
|
||||||
// output the release URL in the console
|
// output the release URL in the console
|
||||||
|
@ -555,11 +555,11 @@ releaseRepository.doLast {
|
||||||
// we don't use maven with the plugin (it's uploaded separately to gradle plugins)
|
// we don't use maven with the plugin (it's uploaded separately to gradle plugins)
|
||||||
tasks.withType(PublishToMavenRepository) {
|
tasks.withType(PublishToMavenRepository) {
|
||||||
onlyIf {
|
onlyIf {
|
||||||
repository == publishing.repositories.maven && publication == publishing.publications.SystemTray
|
repository == publishing.repositories.maven && publication == publishing.publications.maven
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tasks.withType(PublishToMavenLocal) {
|
tasks.withType(PublishToMavenLocal) {
|
||||||
onlyIf {
|
onlyIf {
|
||||||
publication == publishing.publications.SystemTray
|
publication == publishing.publications.maven
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user