From d01767620ee480308dfc03185e6a12d7d1e494f3 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 18 Jun 2022 14:45:39 +0700 Subject: massive gradle changes full, production jar is now suffixed with `-full` jar used by maven and devs is now the normal jar internal stuff is actually removed from devs now --- build.gradle.kts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index fdcca6b..154d4a3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -222,13 +222,14 @@ tasks { } } named("shadowJar") { - archiveClassifier.set("dev") + archiveClassifier.set("donotusethis") configurations = listOf(shade, lwjglNative) duplicatesStrategy = DuplicatesStrategy.EXCLUDE + dependsOn(jar) } remapJar { input.set(shadowJar.get().archiveFile) - archiveClassifier.set("") + archiveClassifier.set("full") } jar { manifest { @@ -242,9 +243,9 @@ tasks { ) ) } - dependsOn(shadowJar) + exclude("**/internal") + exclude("**/internal/**") archiveClassifier.set("") - enabled = false } dokkaHtml.configure { outputDirectory.set(buildDir.resolve("dokka")) @@ -308,8 +309,10 @@ publishing { groupId = "cc.polyfrost" artifactId = base.archivesName.get() - from(components["java"]) + artifact(tasks["jar"]) artifact(tasks["remapJar"]) + artifact(tasks["lwjglJar"]) + artifact(tasks["sourcesJar"]) artifact(tasks["dokkaJar"]) } } -- cgit