diff --git a/build.gradle b/build.gradle index cd07e58da..e95998de3 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ plugins { id 'maven-publish' id 'signing' id 'io.codearte.nexus-staging' version '0.20.0' - id "de.marcphilipp.nexus-publish" version "0.2.0" + id "de.marcphilipp.nexus-publish" version "0.2.0" apply false id 'com.github.ben-manes.versions' version '0.21.0' } @@ -59,7 +59,7 @@ subprojects { apply plugin: 'maven' apply plugin: 'signing' apply plugin: 'checkstyle' - apply plugin: 'maven-publish' + apply plugin: 'de.marcphilipp.nexus-publish' compileJava { diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 89daabea7..f1663d83c 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -19,17 +19,6 @@ task sourcesJar(type: Jar) { } publishing { - repositories { - maven { - def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - credentials { - username = getRepositoryUsername() - password = getRepositoryPassword() - } - } - } publications { mavenJava(MavenPublication) { groupId = 'io.jaegertracing' @@ -74,8 +63,6 @@ publishing { nexusPublishing { - serverUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") - snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/") username = getRepositoryUsername() password = getRepositoryPassword() }