Skip to content

Commit 9f4e448

Browse files
committed
Updated gradle publishing
1 parent dfe7f89 commit 9f4e448

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

build.gradle.kts

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

1213
repositories {
@@ -126,13 +127,14 @@ publishing {
126127
}
127128
}
128129
}
129-
repositories {
130-
maven {
131-
name = "ossrh"
132-
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
133-
credentials(PasswordCredentials::class)
130+
}
131+
nexusPublishing {
132+
repositories {
133+
sonatype {
134+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
135+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
136+
}
134137
}
135-
}
136138
}
137139

138140
signing {

0 commit comments

Comments
 (0)