| repositories { |
| maven { |
| name = "ic2" |
| url = "http://maven.ic2.player.to/" |
| } |
| maven { |
| name = "ue" |
| url = "http://calclavia.com/maven/" |
| } |
| } |
| dependencies { |
| compile "codechicken:CodeChickenLib:${config.cc.mc.version}-${config.ccl.version}:dev" |
| compile "codechicken:ForgeMultipart:${config.cc.mc.version}-${config.fmp.version}:dev" |
| compile "net.industrial-craft:industrialcraft-2:${config.ic2.version}:api" |
| compile "dev.calclavia.universalelectricity:universal-electricity:+:dev" |
| } |
| |
| minecraft { |
| version = "${config.minecraft.version}-${config.forge.version}" |
| |
| replaceIn "li/cil/oc/OpenComputers.scala" |
| replace "@VERSION@", project.simpleVersion |
| if (project.hasProperty("keystore_fingerprint")) |
| replace "@FINGERPRINT@", keystore_fingerprint |
| } |
| |
| processResources { |
| from(sourceSets.main.resources.srcDirs) { |
| include 'mcmod.info' |
| expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version |
| } |
| from(sourceSets.main.resources.srcDirs) { |
| include 'application.conf' |
| filter { line -> |
| line.replaceAll("@VERSION@", project.simpleVersion) |
| } |
| } |
| from(sourceSets.main.resources.srcDirs) { |
| exclude 'mcmod.info' |
| exclude 'application.conf' |
| } |
| } |