|
@@ -1,3 +1,5 @@
|
|
|
|
+import java.util.stream.Collectors
|
|
|
|
+
|
|
buildscript {
|
|
buildscript {
|
|
repositories {
|
|
repositories {
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
|
@@ -20,6 +22,16 @@ version = "${mod_version}"
|
|
group = "malte0811.${modid}" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
|
group = "malte0811.${modid}" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
|
archivesBaseName = "${modid}"
|
|
archivesBaseName = "${modid}"
|
|
|
|
|
|
|
|
+def mixinConfigs = ["predicates", "fastmap", "nopropertymap"].stream()
|
|
|
|
+ .map({s -> archivesBaseName+"."+s+".mixin.json"})
|
|
|
|
+ .collect(Collectors.toList())
|
|
|
|
+
|
|
|
|
+def mixinConfigArg = mixinConfigs.stream()
|
|
|
|
+ .map({s -> "-mixin.config="+s})
|
|
|
|
+ .collect(Collectors.toList())
|
|
|
|
+
|
|
|
|
+def mixinConfigManifestEntry = mixinConfigs.join(",");
|
|
|
|
+
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
|
|
|
|
|
minecraft {
|
|
minecraft {
|
|
@@ -38,7 +50,7 @@ minecraft {
|
|
runs {
|
|
runs {
|
|
client {
|
|
client {
|
|
workingDirectory project.file('run')
|
|
workingDirectory project.file('run')
|
|
- arg "-mixin.config="+archivesBaseName+".mixins.json"
|
|
|
|
|
|
+ args mixinConfigArg
|
|
property 'mixin.env.disableRefMap', 'true'
|
|
property 'mixin.env.disableRefMap', 'true'
|
|
property 'mixin.debug.export', 'true'
|
|
property 'mixin.debug.export', 'true'
|
|
|
|
|
|
@@ -55,7 +67,7 @@ minecraft {
|
|
|
|
|
|
server {
|
|
server {
|
|
workingDirectory project.file('run')
|
|
workingDirectory project.file('run')
|
|
- arg "-mixin.config="+archivesBaseName+".mixins.json"
|
|
|
|
|
|
+ args mixinConfigArg
|
|
arg "-nogui"
|
|
arg "-nogui"
|
|
property 'mixin.env.disableRefMap', 'true'
|
|
property 'mixin.env.disableRefMap', 'true'
|
|
|
|
|
|
@@ -99,7 +111,6 @@ repositories{
|
|
|
|
|
|
dependencies {
|
|
dependencies {
|
|
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
|
|
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
|
|
- compile fg.deobf("blusunrize.immersiveengineering:ImmersiveEngineering:1.16.3-+")
|
|
|
|
runtimeOnly fg.deobf("mezz.jei:jei-1.16.3:7.6.0.49")
|
|
runtimeOnly fg.deobf("mezz.jei:jei-1.16.3:7.6.0.49")
|
|
}
|
|
}
|
|
|
|
|
|
@@ -112,7 +123,7 @@ jar {
|
|
"Implementation-Title": project.name,
|
|
"Implementation-Title": project.name,
|
|
"Implementation-Version": "${version}",
|
|
"Implementation-Version": "${version}",
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
|
- "MixinConfigs": "${modid}.mixins.json"
|
|
|
|
|
|
+ "MixinConfigs": mixinConfigManifestEntry
|
|
])
|
|
])
|
|
}
|
|
}
|
|
}
|
|
}
|