Skip to content

Commit fb5b227

Browse files
committed
Added publication for Sonatype staging repository
1 parent 548d729 commit fb5b227

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ publishing {
2929
password = project.findProperty("servers.github.password")?.toString() ?: System.getenv("GITHUB_PASSWORD")
3030
}
3131
}
32+
maven {
33+
name = "ossrh"
34+
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
35+
credentials {
36+
username = project.findProperty("servers.ossrh.username")?.toString() ?: System.getenv("OSSRH_USERNAME")
37+
password = project.findProperty("servers.ossrh.password")?.toString() ?: System.getenv("OSSRH_PASSWORD")
38+
}
39+
}
3240
}
3341

3442
publications {
@@ -67,6 +75,10 @@ publishing {
6775
}
6876
}
6977

78+
signing {
79+
sign(publishing.publications["maven"])
80+
}
81+
7082
repositories {
7183
mavenLocal()
7284
mavenCentral()

0 commit comments

Comments
 (0)