Skip to content

Commit

Permalink
Use the same artifactids and jar name as on sonatype. This way, one c…
Browse files Browse the repository at this point in the history
…an switch from mavenLocal to sonatype transparently (#160)
  • Loading branch information
martinbonnin authored and sav007 committed Feb 5, 2017
1 parent c082241 commit 3ee9b59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def getRepositoryPassword() {
return hasProperty('SONATYPE_NEXUS_PASSWORD') ? SONATYPE_NEXUS_PASSWORD : ""
}

archivesBaseName = POM_ARTIFACT_ID

afterEvaluate { project ->
uploadArchives {
repositories {
Expand Down Expand Up @@ -90,6 +92,9 @@ afterEvaluate { project ->
}
} else {
mavenInstaller {
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
}
}
}
Expand Down

0 comments on commit 3ee9b59

Please sign in to comment.