Shade updated MVEL2 for JAS

Closes #38 - for real this time
This commit is contained in:
Raven Szewczyk committed 2024-06-30 12:14:05 +01:00
1 parent 5b22a60984
commit 311d177ca7
2 files changed
+9

No files matched your search

+7
View File
@@ -2,6 +2,7 @@ import com.gtnewhorizons.retrofuturagradle.minecraft.RunMinecraftTask
import com.gtnewhorizons.retrofuturagradle.util.Distribution
import com.modrinth.minotaur.ModrinthExtension
import org.apache.tools.ant.filters.ReplaceTokens
import java.nio.charset.StandardCharsets
import java.time.OffsetDateTime
import java.time.ZoneOffset
import java.time.format.DateTimeFormatter
@@ -138,8 +139,14 @@ val forgePatchesJar = tasks.register<Jar>("forgePatchesJar") {
filesMatching("META-INF/*") {
this.name = "${dep.name}-${this.name}"
}
filesMatching("META-INF/services/javax.script.ScriptEngineFactory") {
this.exclude()
}
}
}
from(resources.text.fromString("org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory\norg.mvel2.jsr223.MvelScriptEngineFactory").asFile(StandardCharsets.UTF_8.name())) {
rename { return@rename "META-INF/services/javax.script.ScriptEngineFactory" }
}
exclude("module-info.class")
exclude("META-INF/versions/9/module-info.class")
exclude("log4j2.xml")
+2
View File
@@ -43,6 +43,8 @@ dependencies {
forgePatchesEmbedded("org.apache.commons:commons-lang3:3.14.0")
forgePatchesEmbedded("org.apache.commons:commons-compress:1.26.2")
forgePatchesEmbedded("commons-io:commons-io:2.15.1")
// For Just Another Spawner
forgePatchesEmbedded("org.mvel:mvel2:2.5.2.Final")
compileOnly("org.jetbrains:annotations:24.1.0")