| buildscript { |
| repositories { |
| mavenCentral() |
| maven { |
| name = "forge" |
| url = "http://files.minecraftforge.net/maven" |
| } |
| } |
| dependencies { |
| classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT' |
| } |
| } |
| |
| apply plugin: 'forge' |
| apply plugin: 'scala' |
| |
| compileScala { |
| repositories { |
| ivy { |
| name "forge-cb" |
| artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]" |
| } |
| } |
| dependencies { |
| compile name: 'CodeChickenLib', version: "1.6.4-1.0.0.62", ext: 'jar' |
| compile name: 'ForgeMultipart', version: "1.6.4-1.0.0.250", ext: 'jar' |
| } |
| } |
| |
| version = "1.2.2" |
| group= "li.cil.oc" // http://maven.apache.org/guides/mini/guide-naming-conventions.html |
| archivesBaseName = "OpenComputers-MC1.6.4" |
| |
| if (System.getenv("BUILD_NUMBER") != null) |
| version += ".${System.getenv("BUILD_NUMBER")}" |
| |
| minecraft { |
| version = "1.6.4-9.11.1.964" |
| } |
| |
| processResources { |
| // 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' |
| } |
| } |
| |
| // because the normal default jar task has been modified to be obfuscated |
| task deobfJar(type: Jar) { |
| from sourceSets.main.output |
| classifier = 'deobf' |
| } |
| |
| task apiJar(type: Jar) { |
| from sourceSets.main.output |
| classifier = 'api' |
| include 'li/cil/oc/api/**' |
| } |
| |
| artifacts { |
| archives deobfJar |
| archives apiJar |
| } |