summaryrefslogtreecommitdiff
path: root/root.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-21 21:17:41 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-21 21:17:41 +0200
commitf25b818d9d41e2bb3969399cfc8bbff976b5aad7 (patch)
tree5f9137b374dfca42f596851c85116c9da181fa50 /root.gradle.kts
downloadultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.tar.gz
ultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.tar.bz2
ultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.zip
Init
Diffstat (limited to 'root.gradle.kts')
-rw-r--r--root.gradle.kts27
1 files changed, 27 insertions, 0 deletions
diff --git a/root.gradle.kts b/root.gradle.kts
new file mode 100644
index 0000000..d7f638d
--- /dev/null
+++ b/root.gradle.kts
@@ -0,0 +1,27 @@
+import com.replaymod.gradle.preprocess.Node
+import moe.nea.sharedbuild.Versions
+
+plugins {
+ id("com.replaymod.preprocess") version "b09f534"
+// id("fabric-loom") version "1.6-SNAPSHOT" apply false
+ kotlin("jvm") version "1.9.23" apply false
+ id("gg.essential.loom") version "1.6.+" apply false
+ id("dev.architectury.architectury-pack200") version "0.1.3"
+ id("com.github.johnrengelman.shadow") version "8.1.1" apply false
+}
+
+allprojects {
+ version = "1.0.0"
+ group = "moe.nea.rxcraft"
+}
+
+preprocess {
+ val nodes = mutableMapOf<Versions, Node>()
+ Versions.values().forEach { version ->
+ nodes[version] = createNode(version.projectName, version.numericMinecraftVersion, version.mappingStyle)
+ }
+ Versions.values().forEach { child ->
+ val parent = child.parent ?: return@forEach
+ nodes[parent]!!.link(nodes[child]!!, file("versions/mapping-${parent.projectName}-${child.projectName}.txt"))
+ }
+} \ No newline at end of file