Build file cleanup

This commit is contained in:
nathan 2018-08-18 17:03:20 +02:00
parent 6671b4a7e5
commit 19206f45ad

View File

@ -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
} }
} }