Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Fix nexus-publish config (#621)
Browse files Browse the repository at this point in the history
Apply the nexus-publish plugin to all subprojects instead of the root
project, remove the explicitly configured repository and the default
server URLs.

Signed-off-by: Marc Philipp <[email protected]>
  • Loading branch information
marcphilipp authored and pavolloffay committed May 6, 2019
1 parent 0b2d27c commit a5d0a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down Expand Up @@ -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 {
Expand Down
13 changes: 0 additions & 13 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit a5d0a10

Please sign in to comment.