From 49007061d0c61469dd892f6db98555555d77b2e4 Mon Sep 17 00:00:00 2001 From: Mohammad-Ali Minaie Date: Mon, 26 Jun 2017 00:19:38 -0400 Subject: [PATCH] 1.12 update --- kfc/build.gradle | 93 +++++++++++++------------------------------ kfc/gradle.properties | 4 +- kfc/testbuild.txt | 77 +++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 67 deletions(-) create mode 100644 kfc/testbuild.txt diff --git a/kfc/build.gradle b/kfc/build.gradle index fcc989c8..97c92df7 100644 --- a/kfc/build.gradle +++ b/kfc/build.gradle @@ -14,104 +14,67 @@ buildscript { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } - repositories { maven { name = "jei" url "http://dvs1.progwml6.com/files/maven" } - maven { name = "mobius" url "http://mobiusstrip.eu/maven" } - maven { name = "primal" url "https://maven.nmd.so" } } - apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'java' - compileJava { sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 } - group = "${mod_group}" version = "${mod_version}" archivesBaseName = "${mod_name}" idea { module { inheritOutputDirs = true } } - minecraft { - version = "${mc_version}" + "-" + "${forge_version}" - runDir = "run" - - mappings = "${mcp_mappings}" - - // JEI - //useDepAts = true - - // Replace - replace "@VERSION@", project.mod_version - + version = "${mc_version}" + "-" + "${forge_version}" + runDir = "run" + mappings = "${mcp_mappings}" + // JEI + //useDepAts = true + // Replace + replace "@VERSION@", project.mod_version } - dependencies { -// you may put jars on which you depend on in ./libs -// or you may define them like so.. -//compile "some.group:artifact:version:classifier" -//compile "some.group:artifact:version" -// real examples -//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env -//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env - -// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. -//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' - -// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, -// except that these dependencies get remapped to your current MCP mappings -//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' -//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' - -// for more info... -// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html -// http://www.gradle.org/docs/current/userguide/ddependency_management.html - -// JEI -// https://github.com/mezz/JustEnoughItems -// http://minecraft.curseforge.com/projects/just-enough-items-jei/files -// and can be found on CurseForge, check the file name of the version you want. -// -// compile against the JEI API -deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api" + //compile against the JEI API + deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api" //runtime "mezz.jei:jei_${mc_version}:${jei_version}" - -deobfCompile "nmd.primal.core:PrimalCore:${primal_version}:dev" + deobfCompile "nmd.primal.core:PrimalCore:${primal_version}:dev" //runtime "nmd.primal.core:PrimalCore:${primal_version}" - + } + + processResources { - // this will ensure that this task is redone when the versions change. - inputs.property "version", "${mod_version}" - inputs.property "mcversion", "${mc_version}" + // this will ensure that this task is redone when the versions change. + inputs.property "version", "${mod_version}" + inputs.property "mcversion", "${mc_version}" + // replace stuff in mcmod.info, nothing else + from(sourceSets.main.resources.srcDirs) { + include 'mcmod.info' + // replace version and mcversion + expand 'version':"${mod_version}", 'mcversion':"${mc_version}" + } + // copy everything else, thats not the mcmod.info + from(sourceSets.main.resources.srcDirs) { + exclude 'mcmod.info' + } +} - // replace stuff in mcmod.info, nothing else - from(sourceSets.main.resources.srcDirs) { - include 'mcmod.info' - // replace version and mcversion - expand 'version':"${mod_version}", 'mcversion':"${mc_version}" - } - // copy everything else, thats not the mcmod.info - from(sourceSets.main.resources.srcDirs) { - exclude 'mcmod.info' - } - } - -// end // +// end // \ No newline at end of file diff --git a/kfc/gradle.properties b/kfc/gradle.properties index 459072d8..2fd00f27 100644 --- a/kfc/gradle.properties +++ b/kfc/gradle.properties @@ -7,11 +7,11 @@ mod_group=nmd.primal.forgecraft mod_name=ForgeCraft mod_version=1.3.0 -forge_version=14.21.0.2363 +forge_version=14.21.0.2368 mcp_mappings=snapshot_20170624 mc_version=1.12 primal_version=0.5+ -jei_version=4.6+ +jei_version=4.7+ waila_version=1.7.0-B3 apple_version=2.1+ \ No newline at end of file diff --git a/kfc/testbuild.txt b/kfc/testbuild.txt new file mode 100644 index 00000000..2be6d3f3 --- /dev/null +++ b/kfc/testbuild.txt @@ -0,0 +1,77 @@ +buildscript { + repositories { + jcenter() + maven { url = "http://files.minecraftforge.net/maven" } + } + dependencies { + classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' + } +} +apply plugin: 'net.minecraftforge.gradle.forge' +//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. + + +version = "1.0" +group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html +archivesBaseName = "modid" + +sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. +compileJava { + sourceCompatibility = targetCompatibility = '1.8' +} + +minecraft { + version = "1.12-14.21.0.2368" + runDir = "run" + + // the mappings can be changed at any time, and must be in the following format. + // snapshot_YYYYMMDD snapshot are built nightly. + // stable_# stables are built at the discretion of the MCP team. + // Use non-default mappings at your own risk. they may not always work. + // simply re-run your setup task after changing the mappings to update your workspace. + mappings = "snapshot_20170624" + // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. +} + +dependencies { + // you may put jars on which you depend on in ./libs + // or you may define them like so.. + //compile "some.group:artifact:version:classifier" + //compile "some.group:artifact:version" + + // real examples + //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env + //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env + + // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. + //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' + + // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, + // except that these dependencies get remapped to your current MCP mappings + //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' + //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' + + // for more info... + // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html + // http://www.gradle.org/docs/current/userguide/dependency_management.html + +} + +processResources { + // this will ensure that this task is redone when the versions change. + inputs.property "version", project.version + inputs.property "mcversion", project.minecraft.version + + // replace stuff in mcmod.info, nothing else + from(sourceSets.main.resources.srcDirs) { + include 'mcmod.info' + + // replace version and mcversion + expand 'version':project.version, 'mcversion':project.minecraft.version + } + + // copy everything else except the mcmod.info + from(sourceSets.main.resources.srcDirs) { + exclude 'mcmod.info' + } +}