1.12 update
This commit is contained in:
@@ -14,104 +14,67 @@ buildscript {
|
|||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "jei"
|
name = "jei"
|
||||||
url "http://dvs1.progwml6.com/files/maven"
|
url "http://dvs1.progwml6.com/files/maven"
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
name = "mobius"
|
name = "mobius"
|
||||||
url "http://mobiusstrip.eu/maven"
|
url "http://mobiusstrip.eu/maven"
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
name = "primal"
|
name = "primal"
|
||||||
url "https://maven.nmd.so"
|
url "https://maven.nmd.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "${mod_group}"
|
group = "${mod_group}"
|
||||||
version = "${mod_version}"
|
version = "${mod_version}"
|
||||||
archivesBaseName = "${mod_name}"
|
archivesBaseName = "${mod_name}"
|
||||||
|
|
||||||
idea { module { inheritOutputDirs = true } }
|
idea { module { inheritOutputDirs = true } }
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "${mc_version}" + "-" + "${forge_version}"
|
version = "${mc_version}" + "-" + "${forge_version}"
|
||||||
runDir = "run"
|
runDir = "run"
|
||||||
|
|
||||||
mappings = "${mcp_mappings}"
|
mappings = "${mcp_mappings}"
|
||||||
|
|
||||||
// JEI
|
// JEI
|
||||||
//useDepAts = true
|
//useDepAts = true
|
||||||
|
|
||||||
// Replace
|
// Replace
|
||||||
replace "@VERSION@", project.mod_version
|
replace "@VERSION@", project.mod_version
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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
|
|
||||||
// <MINECRAFT-VERSION> and <JEI-VERSION> can be found on CurseForge, check the file name of the version you want.
|
|
||||||
//
|
|
||||||
//compile against the JEI API
|
//compile against the JEI API
|
||||||
deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api"
|
deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api"
|
||||||
//runtime "mezz.jei:jei_${mc_version}:${jei_version}"
|
//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}"
|
//runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
// this will ensure that this task is redone when the versions change.
|
// this will ensure that this task is redone when the versions change.
|
||||||
inputs.property "version", "${mod_version}"
|
inputs.property "version", "${mod_version}"
|
||||||
inputs.property "mcversion", "${mc_version}"
|
inputs.property "mcversion", "${mc_version}"
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
// replace stuff in mcmod.info, nothing else
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include 'mcmod.info'
|
include 'mcmod.info'
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand 'version':"${mod_version}", 'mcversion':"${mc_version}"
|
expand 'version':"${mod_version}", 'mcversion':"${mc_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
// copy everything else, thats not the mcmod.info
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
exclude 'mcmod.info'
|
exclude 'mcmod.info'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// end //
|
// end //
|
||||||
@@ -7,11 +7,11 @@ mod_group=nmd.primal.forgecraft
|
|||||||
mod_name=ForgeCraft
|
mod_name=ForgeCraft
|
||||||
mod_version=1.3.0
|
mod_version=1.3.0
|
||||||
|
|
||||||
forge_version=14.21.0.2363
|
forge_version=14.21.0.2368
|
||||||
mcp_mappings=snapshot_20170624
|
mcp_mappings=snapshot_20170624
|
||||||
mc_version=1.12
|
mc_version=1.12
|
||||||
|
|
||||||
primal_version=0.5+
|
primal_version=0.5+
|
||||||
jei_version=4.6+
|
jei_version=4.7+
|
||||||
waila_version=1.7.0-B3
|
waila_version=1.7.0-B3
|
||||||
apple_version=2.1+
|
apple_version=2.1+
|
||||||
77
kfc/testbuild.txt
Normal file
77
kfc/testbuild.txt
Normal file
@@ -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'
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user