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
52
build.gradle
52
build.gradle
|
@ -5,45 +5,53 @@ buildscript {
|
|||
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.0-SNAPSHOT'
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
archivesBaseName = "DimensionalDoors"
|
||||
|
||||
minecraft {
|
||||
version = "1.6.4-9.11.1.964"
|
||||
|
||||
replaceIn "mod_pocketDim.java"
|
||||
replace "@VERSION@", project.version
|
||||
version = "1.7.10-10.13.2.1307-1.7.10"
|
||||
runDir = "eclipse"
|
||||
}
|
||||
|
||||
targetCompatibility = '1.6'
|
||||
sourceCompatibility = '1.6'
|
||||
|
||||
processResources
|
||||
{
|
||||
// Replace stuff $version and $mcversion in mcmod.info
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod.info'
|
||||
|
||||
// Replace version and mcversion
|
||||
expand 'version':project.version, 'mcversion':project.minecraft.version
|
||||
}
|
||||
|
||||
// Copy everything else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
}
|
||||
}
|
||||
{
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property "version", project.version
|
||||
inputs.property "mcversion", project.minecraft.version
|
||||
|
||||
// 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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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