summaryrefslogtreecommitdiff
path: root/root.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'root.gradle.kts')
-rw-r--r--root.gradle.kts31
1 files changed, 28 insertions, 3 deletions
diff --git a/root.gradle.kts b/root.gradle.kts
index d7f638d..dc2911a 100644
--- a/root.gradle.kts
+++ b/root.gradle.kts
@@ -2,7 +2,7 @@ import com.replaymod.gradle.preprocess.Node
import moe.nea.sharedbuild.Versions
plugins {
- id("com.replaymod.preprocess") version "b09f534"
+ id("dev.deftu.gradle.preprocess") version "0.7.1"
// 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
@@ -13,15 +13,40 @@ plugins {
allprojects {
version = "1.0.0"
group = "moe.nea.rxcraft"
+ repositories {
+ mavenCentral()
+ maven("https://maven.minecraftforge.net") {
+ metadataSources {
+ artifact()
+ }
+ }
+ maven("https://repo.spongepowered.org/maven/")
+ maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
+ maven("https://jitpack.io") {
+ content {
+ includeGroupByRegex("(io|com)\\.github\\..+")
+ }
+ }
+ maven("https://repo.essential.gg/repository/maven-public")
+ }
}
preprocess {
+ strictExtraMappings.set(true)
val nodes = mutableMapOf<Versions, Node>()
Versions.values().forEach { version ->
- nodes[version] = createNode(version.projectName, version.numericMinecraftVersion, version.mappingStyle)
+ nodes[version] =
+ createNode(version.projectName, version.minecraftVersion.versionNumber, version.mappingStyle.identifier)
}
Versions.values().forEach { child ->
val parent = child.parent ?: return@forEach
- nodes[parent]!!.link(nodes[child]!!, file("versions/mapping-${parent.projectName}-${child.projectName}.txt"))
+ val mappingFile = file("versions/mapping-${parent.projectName}-${child.projectName}.txt")
+ if (mappingFile.exists()) {
+ println("Using mapping file $mappingFile")
+ nodes[parent]!!.link(nodes[child]!!, mappingFile)
+ } else {
+ nodes[parent]!!.link(nodes[child]!!)
+ println("Skipping mapping file $mappingFile")
+ }
}
} \ No newline at end of file