File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id(" java" )
3+ id(" maven-publish" )
34 id(" org.taumc.gradle.versioning" )
45 id(" org.taumc.gradle.publishing" )
56}
@@ -11,6 +12,10 @@ repositories {
1112 mavenCentral()
1213}
1314
15+ java {
16+ withSourcesJar()
17+ }
18+
1419dependencies {
1520 val asmVersion = " 9.8"
1621 compileOnly(" org.ow2.asm:asm:${asmVersion} " )
@@ -35,6 +40,24 @@ tasks.jar {
3540 }
3641}
3742
43+ publishing {
44+ repositories {
45+ maven {
46+ name = " taumcRepository"
47+ url = uri(" https://maven.taumc.org/releases" )
48+ credentials {
49+ username = System .getenv(" MAVEN_USERNAME" )
50+ password = System .getenv(" MAVEN_SECRET" )
51+ }
52+ }
53+ }
54+ publications {
55+ create<MavenPublication >(" mavenJava" ) {
56+ from(components[" java" ])
57+ }
58+ }
59+ }
60+
3861val tauGradlePublish = tau.publishing.publish {
3962 dependsOn(tasks.jar)
4063
You can’t perform that action at this time.
0 commit comments