12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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'
- allprojects {
- apply plugin: 'java'
- sourceCompatibility = 1.7
- targetCompatibility = 1.7
- }
- file "build.properties" withReader {
- def prop = new Properties()
- prop.load(it)
- ext.config = new ConfigSlurper().parse prop
- }
- version = "${config.minecraft.version}-${config.lootgames.version}"
- group = "org.notabug.jalgateam.jalga" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
- archivesBaseName = "JALGA"
- minecraft {
- version = "${config.forge.version}-${config.minecraft.version}"
- runDir = "eclipse"
- replaceIn "src/main/java/io/github/jalgateam/jalga/common/lib/LibStrings.java"
- def versionArray = project.version.tokenize('-')
- replace "GRADLETOKEN_VERSION", versionArray[1]
- }
- dependencies {
- }
- processResources {
- def cleanVersion = ""
- def versionArray = project.version.tokenize('-')
- cleanVersion = versionArray[1]
-
- // this will ensure that this task is redone when the versions change.
- inputs.property "version", project.version
- inputs.property "mcversion", project.minecraft.version
-
- // copy everything else, thats not the mcmod.info
- from(sourceSets.main.resources.srcDirs) {
- }
- }
- idea {
- module {
- inheritOutputDirs = true
- }
- }
|