diff --git a/build.gradle.kts b/build.gradle.kts index 7bb6cedb..12d31d5e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -113,14 +113,6 @@ subprojects { targetCompatibility = jvmVersion } - publishing { - publications { - getByName("maven") { - artifact(tasks["shadowJar"]) - } - } - } - tasks { compileJava { options.encoding = "UTF-8" @@ -156,8 +148,10 @@ subprojects { } jar.configure { - enabled = false dependsOn("shadowJar") + artifacts { + add("default", getByName("shadowJar")) + } } withType { @@ -174,6 +168,7 @@ subprojects { relocate("org.bstats", "me.gamercoder215.shaded.bstats") relocate("com.jeff_media.updatechecker", "me.gamercoder215.shaded.updatechecker") + archiveFileName.set("${project.name}-${project.version}.jar") archiveClassifier.set("") } } diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 7076183e..d81a4d4f 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -49,7 +49,7 @@ tasks { "1_19_R2", "1_19_R3", "1_20_R1" - ).forEach { dependsOn(project(":starcosmetics-$it").tasks["remap"]) } + ).forEach { dependsOn(project(":starcosmetics-$it").tasks["jar"]) } } register("sourcesJar", Jar::class.java) {