aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-18 14:45:39 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-18 14:45:39 +0700
commitd01767620ee480308dfc03185e6a12d7d1e494f3 (patch)
tree09de49d1a560d9336fa31d9c8e0952a8ded399a3
parentd0c8b1f7c7792f5f00d5870d9f980d0101007592 (diff)
downloadOneConfig-d01767620ee480308dfc03185e6a12d7d1e494f3.tar.gz
OneConfig-d01767620ee480308dfc03185e6a12d7d1e494f3.tar.bz2
OneConfig-d01767620ee480308dfc03185e6a12d7d1e494f3.zip
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
-rw-r--r--build.gradle.kts13
1 files 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>("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"])
}
}