Skip to content

Commit 21c6ac1

Browse files
committed
Use nexus-publish plugin
1 parent 2ce77eb commit 21c6ac1

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ plugins {
1818
id 'org.ajoberstar.git-publish' version '1.0.1' apply false
1919
id 'org.jetbrains.kotlin.jvm' version '1.2.61' apply false
2020
id 'com.github.johnrengelman.shadow' version '2.0.4' apply false
21+
id 'de.marcphilipp.nexus-publish' version '0.1.0' apply false
2122
}
2223

2324
buildScan {

gradle/publishing.gradle

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apply plugin: 'maven-publish'
1+
apply plugin: 'de.marcphilipp.nexus-publish'
22
apply plugin: 'signing'
33

44
def isSnapshot = project.version.contains('SNAPSHOT')
@@ -70,15 +70,4 @@ publishing {
7070
}
7171
}
7272
}
73-
repositories {
74-
maven {
75-
def stagingRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
76-
def snapshotRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
77-
url isSnapshot ? snapshotRepoUrl : stagingRepoUrl
78-
credentials {
79-
username = rootProject.findProperty('ossrhUsername') ?: ''
80-
password = rootProject.findProperty('ossrhPassword') ?: ''
81-
}
82-
}
83-
}
8473
}

0 commit comments

Comments
 (0)