c4abae8fdd
Made some more changes to build.gradle in the hopes that the version information will automatically update in mod_pocketDim.java. It has only worked on mcmod.info in previous attempts.
49 lines
1.1 KiB
Groovy
49 lines
1.1 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "forge"
|
|
url = "http://files.minecraftforge.net/maven"
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'forge'
|
|
|
|
version = "2.2.4-" + 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
|
|
}
|
|
|
|
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'
|
|
}
|
|
}
|
|
|
|
jar
|
|
{
|
|
destinationDir = new File("build/dist/")
|
|
}
|