2014-09-26 16:14:44 +02:00
|
|
|
apply plugin: 'forge'
|
2014-09-24 02:30:22 +02:00
|
|
|
|
2014-09-26 16:14:44 +02:00
|
|
|
apply from: 'gradle/scripts/propertyloader.gradle'
|
|
|
|
apply from: 'gradle/scripts/dependencies.gradle'
|
|
|
|
apply from: 'gradle/scripts/artifacts.gradle'
|
|
|
|
apply from: 'gradle/scripts/autoinstallruntime.gradle'
|
2014-09-24 02:30:22 +02:00
|
|
|
|
2014-09-26 16:14:44 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2014-09-24 02:30:22 +02:00
|
|
|
mavenCentral()
|
|
|
|
|
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
name = "sonatype"
|
|
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.cacheDynamicVersionsFor 7200, 'hours'
|
|
|
|
}
|
|
|
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_6
|
|
|
|
|
2014-09-26 16:14:44 +02:00
|
|
|
version = config.version + "-" + config.aechannel + "-" + config.build
|
2014-09-24 02:30:22 +02:00
|
|
|
group = config.group
|
|
|
|
archivesBaseName = config.archivesBaseName
|
|
|
|
|
|
|
|
// Add Coremod Manifest
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes 'FMLCorePlugin': 'appeng.transformer.AppEngCore'
|
|
|
|
attributes 'FMLCorePluginContainsFMLMod': 'true'
|
|
|
|
}
|
|
|
|
|
2014-09-26 16:14:44 +02:00
|
|
|
// specify which files are really included, can control which APIs should be in
|
|
|
|
include "appeng/**"
|
|
|
|
include "assets/**"
|
|
|
|
include "mcmod.info"
|
|
|
|
include "pack.mcmeta"
|
2014-09-24 02:30:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
minecraft {
|
|
|
|
version = config.minecraft_version + "-" + config.forge_version
|
|
|
|
|
|
|
|
replace "@version@", project.version
|
|
|
|
replace "@aechannel@", config.aechannel
|
|
|
|
|
2014-09-26 16:14:44 +02:00
|
|
|
// used when launching minecraft in dev env
|
2014-09-24 02:30:22 +02:00
|
|
|
runDir = "run"
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
2014-09-26 16:14:44 +02:00
|
|
|
srcDirs += 'src/api/java'
|
2014-09-24 02:30:22 +02:00
|
|
|
srcDirs += 'src/main/java/'
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
2014-09-26 16:14:44 +02:00
|
|
|
srcDir "src/main/resources/"
|
2014-09-24 02:30:22 +02:00
|
|
|
include "assets/appliedenergistics2/recipes/*.recipe",
|
2014-09-26 16:14:44 +02:00
|
|
|
"assets/appliedenergistics2/lang/*.lang",
|
|
|
|
"assets/appliedenergistics2/textures/blocks/*",
|
|
|
|
"assets/appliedenergistics2/textures/guis/*",
|
|
|
|
"assets/appliedenergistics2/textures/models/*",
|
|
|
|
"assets/appliedenergistics2/textures/items/*"
|
2014-09-24 02:30:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
// replace stuff in mcmod.info, nothing else
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
include 'mcmod.info'
|
|
|
|
expand 'version': project.version, 'mcversion': config.minecraft_version
|
|
|
|
}
|
|
|
|
|
2014-09-26 16:14:44 +02:00
|
|
|
// copy everything else, that is not the mcmod.info
|
2014-09-24 02:30:22 +02:00
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
|
|
|
}
|