Skip to content

Commit

Permalink
Use nexus-publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 20, 2018
1 parent 2ce77eb commit 21c6ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ plugins {
id 'org.ajoberstar.git-publish' version '1.0.1' apply false
id 'org.jetbrains.kotlin.jvm' version '1.2.61' apply false
id 'com.github.johnrengelman.shadow' version '2.0.4' apply false
id 'de.marcphilipp.nexus-publish' version '0.1.0' apply false
}

buildScan {
Expand Down
13 changes: 1 addition & 12 deletions gradle/publishing.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'maven-publish'
apply plugin: 'de.marcphilipp.nexus-publish'
apply plugin: 'signing'

def isSnapshot = project.version.contains('SNAPSHOT')
Expand Down Expand Up @@ -70,15 +70,4 @@ publishing {
}
}
}
repositories {
maven {
def stagingRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
url isSnapshot ? snapshotRepoUrl : stagingRepoUrl
credentials {
username = rootProject.findProperty('ossrhUsername') ?: ''
password = rootProject.findProperty('ossrhPassword') ?: ''
}
}
}
}

0 comments on commit 21c6ac1

Please sign in to comment.