| 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.1-SNAPSHOT' |
| } |
| } |
| |
| apply plugin: 'forge' |
| apply plugin: 'scala' |
| |
| file "build.properties" withReader { |
| def prop = new Properties() |
| prop.load(it) |
| ext.config = new ConfigSlurper().parse prop |
| } |
| |
| version = "${config.oc.version}" |
| group = "li.cil.oc" |
| archivesBaseName = "OpenComputers-MC${config.minecraft.version}" |
| |
| if (System.getenv("BUILD_NUMBER") != null) |
| version += ".${System.getenv("BUILD_NUMBER")}" |
| |
| apply from: 'gradle/forge.gradle' |
| apply from: 'gradle/artifact.gradle' |
| apply from: 'gradle/release.gradle' |