2016-06-13 11:55:30 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2016-06-14 20:21:21 +02:00
|
|
|
classpath "net.minecraftforge.gradle:ForgeGradle:${forgegradle_version}"
|
2016-06-13 11:55:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-14 20:21:21 +02:00
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
2016-06-13 11:55:30 +02:00
|
|
|
|
|
|
|
|
2016-07-11 22:34:31 +02:00
|
|
|
version = "${mod_version}-${mc_full_version}"
|
2016-06-14 20:21:21 +02:00
|
|
|
group= "${mod_name}"
|
|
|
|
archivesBaseName = "${mod_name}"
|
2016-06-13 11:55:30 +02:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDirs = ["src/java"]
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDirs = ["src/resources"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-14 17:36:26 +02:00
|
|
|
srcCompat = JavaVersion.VERSION_1_8
|
|
|
|
targetCompat = JavaVersion.VERSION_1_8
|
|
|
|
|
2016-06-13 11:55:30 +02:00
|
|
|
|
|
|
|
minecraft {
|
2016-07-10 21:30:05 +02:00
|
|
|
version = "${mc_full_version}-${forge_version}"
|
2016-06-13 11:55:30 +02:00
|
|
|
runDir = "run"
|
2016-06-14 20:21:21 +02:00
|
|
|
mappings = "${mappings_version}"
|
2016-06-13 11:55:30 +02:00
|
|
|
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
2016-07-12 15:08:45 +02:00
|
|
|
|
|
|
|
replace "@VERSION@", project.version
|
|
|
|
replaceIn "Mmm.java"
|
2016-06-13 11:55:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
2016-06-14 20:21:21 +02:00
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = 'UTF-8'
|
2016-06-23 21:58:11 +02:00
|
|
|
}
|