Skip to content

Commit 603fa85

Browse files
committed
maven publishing
1 parent b77a824 commit 603fa85

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ apply from: "$rootDir/gradle/scripts/moddevgradle.gradle"
3333
apply from: "$rootDir/gradle/scripts/repositories.gradle"
3434
apply from: "$rootDir/dependencies.gradle"
3535
apply from: "$rootDir/gradle/scripts/resources.gradle"
36-
//apply from: "$rootDir/gradle/scripts/publishing.gradle"
36+
apply from: "$rootDir/gradle/scripts/publishing.gradle"
3737
apply from: "$rootDir/gradle/scripts/spotless.gradle"
3838

3939
tasks.withType(JavaCompile).configureEach {

gradle/scripts/publishing.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
publishing {
2+
publications {
3+
mavenJava(MavenPublication) {
4+
artifactId = base.archivesName.get()
5+
artifact(reobfSlimJar)
6+
from components.java
7+
}
8+
}
9+
10+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
11+
repositories {
12+
// Add repositories to publish to here.
13+
maven {
14+
url = "https://maven.gtceu.com"
15+
credentials {
16+
username = System.getenv("MAVEN_USER")
17+
password = System.getenv("MAVEN_PASSWORD")
18+
}
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)