GregTech4/build.gradle

89 lines
2.3 KiB
Groovy
Raw Normal View History

2020-08-03 22:26:10 +02:00
buildscript {
repositories {
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'
}
}
apply plugin: 'forge'
version = "404"
group= "gregtechmod"
archivesBaseName = "gregtech_addon"
minecraft {
2020-08-04 18:46:14 +02:00
version = "${mc_ver}-${forge_ver}-${mc_ver}"
2020-08-03 22:26:10 +02:00
runDir = "eclipse"
}
2020-08-04 18:46:14 +02:00
repositories {
maven {
url = "http://maven.ic2.player.to/"
}
maven {
name = "ChickenBones maven"
url = "http://chickenbones.net/maven/"
}
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "cil"
url = "https://maven.cil.li/"
}
2020-08-04 21:29:24 +02:00
maven {
name = "buildcraft"
url = "https://mod-buildcraft.com/maven/"
}
2020-08-04 18:46:14 +02:00
}
2020-08-03 22:26:10 +02:00
2020-08-05 19:14:26 +02:00
jar {
manifest {
attributes 'FMLAT': 'gregtech_at.cfg'
}
}
2020-08-04 18:46:14 +02:00
dependencies {
compile "codechicken:CodeChickenCore:${mc_ver}-${ccc_version}:dev"
compile "codechicken:NotEnoughItems:${mc_ver}-${nei_version}:dev"
compile "codechicken:CodeChickenLib:${mc_ver}-${ccl_version}:dev"
compile "net.sengir.forestry:forestry_${mc_ver}:${forestry_ver}:dev"
compile "net.industrial-craft:industrialcraft-2:${ic2_ver}-experimental:dev"
2020-08-04 18:52:48 +02:00
compile files("libs/CoFHCore-[1.7.10]3.1.4-329-dev.jar")
compile files("libs/ThermalDynamics-[1.7.10]1.2.1-172-dev.jar")
compile files("libs/ThermalExpansion-[1.7.10]4.1.5-248-dev.jar")
compile files("libs/ThermalFoundation-[1.7.10]1.2.6-118-dev.jar")
2020-08-05 18:33:05 +02:00
compile files("libs/Railcraft_1.7.10-9.12.2.1-dev.jar")
2020-08-03 22:26:10 +02:00
}
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, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}