We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8814804 commit df57b32Copy full SHA for df57b32
1 file changed
build.gradle
@@ -79,4 +79,32 @@ java {
79
wrapper {
80
gradleVersion = '8.9'
81
distributionType = Wrapper.DistributionType.BIN
82
+}
83
+
84
+publishing {
85
+ publications {
86
+ maven(MavenPublication) {
87
+ groupId project.group
88
+ artifactId "$project.name"
89
+ version project.version
90
91
+ from components.java
92
+ }
93
94
95
+ repositories {
96
+ maven {
97
+ url = "https://repo.codemc.io/repository/streamline-essentials/"
98
99
+ def mavenUsername = System.getenv("JENKINS_NEXUS_USERNAME")
100
+ def mavenPassword = System.getenv("JENKINS_NEXUS_PASSWORD")
101
102
+ if (mavenUsername != null && mavenPassword != null) {
103
+ credentials {
104
+ username = mavenUsername
105
+ password = mavenPassword
106
107
108
109
110
}
0 commit comments