From 5cf1d2e6745d5a2801be0867d49aa14e5efa2283 Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 7 Nov 2019 18:59:07 +0100 Subject: [PATCH] Update buildscript and resource data to 1.14.4 (#1292) * Update gradlew wrapper * Update buildscript to 1.14 * Fix wrong plugin path * Replace mcmod.info with new mods.toml * Add pack mcmeta * Move logo to main folder because forge 1.14.4 cannot load logo files with a path * Fix version number is wrong * Add jei * Add manifest data (Used for version replacement) --- build.gradle | 75 ++++++++++++------ gradle/wrapper/gradle-wrapper.jar | Bin 54706 -> 54708 bytes gradle/wrapper/gradle-wrapper.properties | 3 +- src/main/resources/META-INF/mods.toml | 27 +++++++ .../actuallyadditions/textures => }/logo.png | Bin src/main/resources/mcmod.info | 19 ----- src/main/resources/pack.mcmeta | 6 ++ 7 files changed, 83 insertions(+), 47 deletions(-) create mode 100644 src/main/resources/META-INF/mods.toml rename src/main/resources/{assets/actuallyadditions/textures => }/logo.png (100%) delete mode 100644 src/main/resources/mcmod.info create mode 100644 src/main/resources/pack.mcmeta diff --git a/build.gradle b/build.gradle index d0a1802f7..2c6e86b1c 100644 --- a/build.gradle +++ b/build.gradle @@ -7,14 +7,15 @@ buildscript { } } dependencies { - classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' + classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true } } -apply plugin: 'net.minecraftforge.gradle.forge' +apply plugin: 'net.minecraftforge.gradle' +apply plugin: 'eclipse' apply plugin: 'idea' -version = "1.12.2-r150" +version = "1.14.4-r151" group = "de.ellpeck.actuallyadditions" archivesBaseName = "ActuallyAdditions" @@ -23,12 +24,34 @@ if(hasProperty('buildnumber')){ } minecraft { - version = "1.12.2-14.23.5.2836" - runDir = "run" - mappings = "stable_39" - makeObfSourceJar = false - replaceIn "ActuallyAdditions.java" - replace "@VERSION@", project.version.toString() + mappings channel: "snapshot", version: "20191107-1.14.3" + runs { + client = { + workingDirectory project.file("run/client").canonicalPath + mods { + actuallyadditions { + source sourceSets.main + } + } + } + server = { + workingDirectory project.file("run/server").canonicalPath + mods { + actuallyadditions { + source sourceSets.main + } + } + } + data = { + workingDirectory project.file("run/data").canonicalPath + args "--mod", "actuallyadditions", "--all", "--output", "\"" + file("src/generated/resources").toString() + "\"", "--validate", "--existing", "\"" + sourceSets.main.resources.srcDirs[0] + "\"" + mods { + actuallyadditions { + source sourceSets.main + } + } + } + } } repositories { @@ -44,34 +67,34 @@ repositories { } dependencies { - deobfCompile "mezz.jei:jei_1.12.2:+" - deobfCompile "mcp.mobius.waila:Hwyla:1.8+" - deobfCompile ("org.cyclops.commoncapabilities:CommonCapabilities:1.12.2-+") + minecraft "net.minecraftforge:forge:1.14.4-28.1.86" + compileOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.24:api") + runtimeOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.24") + //deobfCompile "mcp.mobius.waila:Hwyla:1.8+" + //deobfCompile ("org.cyclops.commoncapabilities:CommonCapabilities:1.12.2-+") } -processResources { - inputs.property "version", project.version - inputs.property "mcversion", project.minecraft.version - - from(sourceSets.main.resources.srcDirs) { - include 'mcmod.info' - - expand 'version': project.version, 'mcversion': project.minecraft.version - } - - from(sourceSets.main.resources.srcDirs) { - exclude 'mcmod.info' - } +def normalManifest = { + attributes( + "Built-On": "1.14.4", + "Implementation-Title": "ActuallyAdditions", + "Implementation-Version": project.version, + "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") + ) } jar { - + exclude(".cache") + manifest normalManifest } task deobfJar(type: Jar) { from sourceSets.main.output from sourceSets.main.java classifier = 'dev' + + exclude(".cache") + manifest normalManifest } task apiJar(type: Jar) { diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index a7d517fd6fd6234731c92dfdd3552bfc99c9a03a..7a3265ee94c0ab25cf079ac8ccdf87f41d455d42 100644 GIT binary patch delta 759 zcmYk4T}V@57{|~1X!ArX*HOmsI?)CJ`^kZHjL81i=d03(FYY) zx<4XXB1Lxw<*17;QfqVO=H}PDD6hN`B`Ecx+j{pp#RG@){C>~>dEaw5uYVxr<3LJB z^|qSMMVGzPRxdB*ueGhVF{wix^xFcdlH`!E7C4ZdDtX*#vTIbM ze0>&Af(@(}3&DMC2!_!bwv5+>MqD1%$iz@onF}{l@r7f(E`h!=8P9YwGC~?1OxrLG zp~LiY`v!duS!sFaIyvb_UZTQtU{8gj=kJ%ic2)3z z5p@+A7!E1$eOD>1lB;5oEvwp^EvVuR6V!1l-F1p}-#PVY8P`a03$(jS@M}UrY2DT_ zwJzCAN6MTL)nS#6o)W4#e2kUiL--8QIShtPutaKDCN4!htQG!dFF=GR?o6qa`(j;n>o7D` zOR{eh-9AOEb9`DQW7npBK7EJ`-AT;$&1m$uCrNtPdlNGnO}!E-y)TRJt6+XcrLumm z90HxQDmA^~XvU*iD=D9#kDKvx*2=|Raj|;zB0?eT)D9dqtVi=MruSKq!nUGLI#GA2v#U+ z{;By7g3PFWxQBct4RCYFsJUv0{e zAP6n3H}}Kt%Y`(r6{lgCw}_j#D`lc#ULje8=r^EBlrh7sON!dTg(GB1j;T~!TsTg{ zsWF#=_X`JTGi%4G7LU>wW7I*Fy&FY-9iE$XYIf@O*KOkPYMz7{QwG)-6*A{-hq5pf z(xKQKpPysqu-cr4N358kBpxP}aA+xs!J@Kwm|e!<=`s!9+2e?Z4;&o6b*RzuQ6a69 z**sJ`jrOKs6RD@~Gf>T1(HGRg6OqMPgd;Zy kUQBrRpl(fVioWLP6HaHN(6eRyKN6