Need to actally update this build script.
This commit is contained in:
parent
6457c562a6
commit
89f256af09
2 changed files with 30 additions and 26 deletions
48
build.gradle
48
build.gradle
|
@ -5,45 +5,53 @@ buildscript {
|
||||||
name = "forge"
|
name = "forge"
|
||||||
url = "http://files.minecraftforge.net/maven"
|
url = "http://files.minecraftforge.net/maven"
|
||||||
}
|
}
|
||||||
|
maven {
|
||||||
|
name = "sonatype"
|
||||||
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'forge'
|
apply plugin: 'forge'
|
||||||
|
|
||||||
version = "2.2.4-" + System.getenv("BUILD_NUMBER")
|
version = "2.2.5-" + System.getenv("BUILD_NUMBER")
|
||||||
group = "com.stevenrs11.dimdoors" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
group = "com.stevenrs11.dimdoors" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = "DimensionalDoors"
|
archivesBaseName = "DimensionalDoors"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.6.4-9.11.1.964"
|
version = "1.7.10-10.13.2.1307-1.7.10"
|
||||||
|
runDir = "eclipse"
|
||||||
replaceIn "mod_pocketDim.java"
|
|
||||||
replace "@VERSION@", project.version
|
|
||||||
}
|
}
|
||||||
|
|
||||||
targetCompatibility = '1.6'
|
targetCompatibility = '1.6'
|
||||||
sourceCompatibility = '1.6'
|
sourceCompatibility = '1.6'
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
// Replace stuff $version and $mcversion in mcmod.info
|
// this will ensure that this task is redone when the versions change.
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
inputs.property "version", project.version
|
||||||
include 'mcmod.info'
|
inputs.property "mcversion", project.minecraft.version
|
||||||
|
|
||||||
// Replace version and mcversion
|
// replace stuff in mcmod.info, nothing else
|
||||||
expand 'version':project.version, 'mcversion':project.minecraft.version
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Copy everything else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'mcmod.info'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
jar
|
jar
|
||||||
{
|
{
|
||||||
destinationDir = new File("build/dist/")
|
manifest {
|
||||||
|
attributes 'FMLAT': 'accessTransformer.cfg'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
Manifest-Version: 1.0
|
|
||||||
Ant-Version: Apache Ant 1.8.3
|
|
||||||
Created-By: 1.6.0_45-b06 (Sun Microsystems Inc.)
|
|
||||||
FMLAT: accessTransformer.cfg
|
|
Loading…
Reference in a new issue