Smarter translucency sorting #42
No files matched your search
@@ -12,7 +12,7 @@ dependencies {
|
||||
implementation("com.google.code.gson:gson:2.10.1")
|
||||
implementation("org.apache.commons:commons-compress:1.26.0")
|
||||
implementation("com.gradleup.shadow:shadow-gradle-plugin:9.6.1")
|
||||
implementation("dev.kikugie:stonecutter:0.10-alpha.8")
|
||||
implementation("dev.kikugie:stonecutter:0.10-alpha.9")
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
org.gradle.jvmargs=-Xmx2G
|
||||
org.gradle.workers.max=2
|
||||
org.gradle.configureondemand=true
|
||||
org.gradle.configuration-cache=true
|
||||
org.gradle.caching=true
|
||||
@@ -7,7 +8,7 @@ org.gradle.caching=true
|
||||
moddevgradle_version=2.0.146-tau.2
|
||||
loom_version=1.17.20
|
||||
rfg_version=2.0.4
|
||||
stonecutter_version=0.10-alpha.8
|
||||
stonecutter_version=0.10-alpha.9
|
||||
taugradle_version=0.3.36
|
||||
junit_version=5.13.4
|
||||
jmh_version=1.37
|
||||
|
||||
@@ -175,8 +175,11 @@ if (modLoader == ModLoader.NEOFORGE) {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("createMinecraftArtifacts") {
|
||||
tasks.named<CreateMinecraftArtifacts>("createMinecraftArtifacts") {
|
||||
dependsOn(generateAccessTransformer)
|
||||
// NFRT does not inherit Gradle's project repositories. Legacy Forge's launcher
|
||||
// classifier is hosted on the Forge Maven and must be passed explicitly.
|
||||
additionalRepositories.add("https://maven.minecraftforge.net/")
|
||||
}
|
||||
|
||||
modDevExtension.accessTransformers.from(generatedATPath)
|
||||
|
||||
@@ -96,12 +96,8 @@ stonecutter.parameters {
|
||||
replace("net.minecraft.resources.ResourceLocation", "net.minecraft.resources.Identifier")
|
||||
}
|
||||
|
||||
// NOTE: Stonecutter 0.10-alpha.8 has a bug in RegexSpecImpl.replace: it constructs
|
||||
// RegexReplacement(pattern, target) with the pattern and the replacement swapped, so the regex
|
||||
// ends up being emitted into the source instead of the replacement text. Until that is fixed
|
||||
// upstream, the arguments here are deliberately given in swapped order to compensate.
|
||||
replacements.regex(eval(current.version, ">=1.21.11")) {
|
||||
replace("Identifier", "\\bResourceLocation\\b", "ResourceLocation", "\\bIdentifier\\b")
|
||||
replace("\\bResourceLocation\\b", "Identifier", "\\bIdentifier\\b", "ResourceLocation")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user