aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-02 06:51:23 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-02 06:51:23 +0700
commitd9169a66be760e32a7a162b035bfd743e911b986 (patch)
tree471b4d488831fc2c8472d9c717a95c8e1277c17d
parentd4bb5a94308d4379ef3d6cc7b9221ea0d98ff051 (diff)
downloadOneConfig-d9169a66be760e32a7a162b035bfd743e911b986.tar.gz
OneConfig-d9169a66be760e32a7a162b035bfd743e911b986.tar.bz2
OneConfig-d9169a66be760e32a7a162b035bfd743e911b986.zip
fix full jars
-rw-r--r--versions/build.gradle.kts14
-rw-r--r--versions/src/main/resources/mcmod.info (renamed from src/main/resources/mcmod.info)0
2 files changed, 12 insertions, 2 deletions
diff --git a/versions/build.gradle.kts b/versions/build.gradle.kts
index 939e61b..014b13c 100644
--- a/versions/build.gradle.kts
+++ b/versions/build.gradle.kts
@@ -10,6 +10,7 @@ plugins {
id("gg.essential.defaults.repo")
id("gg.essential.defaults.java")
id("gg.essential.defaults.loom")
+ id("com.github.johnrengelman.shadow")
id("net.kyori.blossom") version "1.3.0"
id("org.jetbrains.dokka") version "1.6.21"
id("maven-publish")
@@ -201,7 +202,15 @@ tasks {
}
}
+ val shadowJar = named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
+ archiveClassifier.set("full-dev")
+ configurations = listOf(shade, shadeNoPom)
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+ dependsOn(jar)
+ }
+
remapJar {
+ input.set(shadowJar.get().archiveFile)
archiveClassifier.set("full")
}
@@ -209,8 +218,9 @@ tasks {
exclude("**/internal/**")
}
jar {
- dependsOn(shadeNoPom, shade)
- from({ ArrayList<File>().also { it.addAll(shadeNoPom); it.addAll(shade) }.map { if (it.isDirectory) it else zipTree(it) } })
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+ dependsOn(shadeNoPom)
+ from(shadeNoPom.map { if (it.isDirectory) it else zipTree(it) })
manifest {
attributes(
mapOf(
diff --git a/src/main/resources/mcmod.info b/versions/src/main/resources/mcmod.info
index 246a086..246a086 100644
--- a/src/main/resources/mcmod.info
+++ b/versions/src/main/resources/mcmod.info