Skip to content

Commit 96c3078

Browse files
committed
Updated gradle publishing
1 parent dfe7f89 commit 96c3078

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

build.gradle.kts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ plugins {
77
application
88
signing
99
jacoco
10+
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
1011
}
1112

12-
repositories {
13-
mavenCentral()
14-
}
1513

1614
java {
1715
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -126,13 +124,14 @@ publishing {
126124
}
127125
}
128126
}
129-
repositories {
130-
maven {
131-
name = "ossrh"
132-
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
133-
credentials(PasswordCredentials::class)
127+
}
128+
nexusPublishing {
129+
repositories {
130+
create("myNexus") {
131+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
132+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots"))
133+
}
134134
}
135-
}
136135
}
137136

138137
signing {

0 commit comments

Comments
 (0)