We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d0af3 commit dec6d1dCopy full SHA for dec6d1d
build.gradle.kts
@@ -1,6 +1,8 @@
1
plugins {
2
id("java-library")
3
id("maven-publish")
4
+ id("signing")
5
+ id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
6
}
7
8
group = "net.goldenstack.loot"
@@ -45,3 +47,21 @@ configure<PublishingExtension> {
45
47
46
48
49
50
+
51
+nexusPublishing {
52
+ repositories {
53
+ sonatype {
54
+ nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
55
+ snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
56
57
+ if (System.getenv("SONATYPE_USERNAME") != null) {
58
+ username.set(System.getenv("SONATYPE_USERNAME"))
59
+ password.set(System.getenv("SONATYPE_PASSWORD"))
60
+ }
61
62
63
+}
64
65
+signing {
66
+ sign(publishing.publications["mavenJava"])
67
0 commit comments