aboutsummaryrefslogtreecommitdiff
path: root/versions
diff options
context:
space:
mode:
Diffstat (limited to 'versions')
-rw-r--r--versions/build.gradle.kts14
-rw-r--r--versions/src/main/resources/mcmod.info21
2 files changed, 33 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/versions/src/main/resources/mcmod.info b/versions/src/main/resources/mcmod.info
new file mode 100644
index 0000000..246a086
--- /dev/null
+++ b/versions/src/main/resources/mcmod.info
@@ -0,0 +1,21 @@
+[
+ {
+ "modid": "${id}",
+ "name": "${name}",
+ "description": "OneConfig",
+ "version": "${version}",
+ "mcversion": "1.8.9",
+ "url": "",
+ "updateUrl": "",
+ "authorList": [
+ "MoonTidez",
+ "DeDiamondPro",
+ "nxtdaydelivery",
+ "Wyvest"
+ ],
+ "credits": "",
+ "logoFile": "",
+ "screenshots": [],
+ "dependencies": []
+ }
+] \ No newline at end of file