Skip to content

Commit df57b32

Browse files
committed
fix: publishing
1 parent 8814804 commit df57b32

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,32 @@ java {
7979
wrapper {
8080
gradleVersion = '8.9'
8181
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+
}
82110
}

0 commit comments

Comments
 (0)