ActuallyAdditions/build.gradle

75 lines
1.7 KiB
Groovy
Raw Normal View History

2014-11-07 14:19:05 +01:00
buildscript {
repositories {
2016-01-07 18:20:59 +01:00
jcenter()
2014-11-07 14:19:05 +01:00
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
2016-01-07 18:20:59 +01:00
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
2014-11-07 14:19:05 +01:00
}
}
2016-01-07 18:20:59 +01:00
apply plugin: 'net.minecraftforge.gradle.forge'
2014-11-07 14:19:05 +01:00
2016-01-06 18:12:16 +01:00
version = "1.7.10-r20"
2015-12-30 22:02:15 +01:00
group = "de.ellpeck.actuallyadditions"
2015-03-07 12:51:28 +01:00
archivesBaseName = "ActuallyAdditions"
2014-11-07 14:19:05 +01:00
minecraft {
2016-01-07 18:20:59 +01:00
version = "1.8.9-11.15.0.1684"
2014-11-07 14:19:05 +01:00
runDir = "idea"
2016-01-07 18:20:59 +01:00
mappings = "stable_20"
replaceIn "ModUtil.java"
2015-11-29 13:17:45 +01:00
replace "@VERSION@", project.version.toString()
2014-11-07 14:19:05 +01:00
}
2015-04-26 20:07:57 +02:00
repositories {
maven {
name "Mobius"
url "http://mobiusstrip.eu/maven"
}
maven {
name "ChickenBones"
url "http://chickenbones.net/maven/"
}
}
dependencies {
2016-01-07 18:20:59 +01:00
//compile "mcp.mobius.waila:Waila:1.5.10_1.7.10"
//compile "codechicken:CodeChickenLib:1.7.10-1.1.3.138:dev"
//compile "codechicken:CodeChickenCore:1.7.10-1.0.7.46:dev"
//compile "codechicken:NotEnoughItems:1.7.10-1.0.5.110:dev"
2014-11-07 14:19:05 +01:00
}
processResources {
2014-11-07 14:19:05 +01:00
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
2015-10-03 22:13:57 +02:00
expand 'version': project.version, 'mcversion': project.minecraft.version
2014-11-07 14:19:05 +01:00
}
2015-10-03 22:13:57 +02:00
2014-11-07 14:19:05 +01:00
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
2015-01-05 22:50:20 +01:00
// Why is OpenComputers one of the only mods that has a readable build.gradle? (Thank you Sangar!) :D
jar {}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
task apiJar(type: Jar) {
from sourceSets.main.output
from sourceSets.main.java
classifier = 'api'
include 'de/ellpeck/actuallyadditions/api/**'
}