Build script derp
This commit is contained in:
parent
9ef2785333
commit
69872a2e0b
1 changed files with 6 additions and 97 deletions
103
build.gradle
103
build.gradle
|
@ -6,96 +6,6 @@ buildscript {
|
|||
url = "http://files.minecraftforge.net/maven"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'forge'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
ext.buildProps = file "build.properties"
|
||||
|
||||
buildProps.withReader {
|
||||
def prop = new Properties()
|
||||
prop.load(it)
|
||||
ext.config = new ConfigSlurper().parse prop
|
||||
}
|
||||
|
||||
group = "resonant-induction"
|
||||
archivesBaseName = "Resonant-Induction"
|
||||
|
||||
minecraft {
|
||||
version = "${rootProject.config.version.minecraft}-${rootProject.config.version.forge}"
|
||||
|
||||
replaceIn "Reference.java"
|
||||
replace "@MAJOR@", rootProject.config.version.mod.major
|
||||
replace "@MINOR@", rootProject.config.version.mod.minor
|
||||
replace "@REVIS@", rootProject.config.version.mod.revis
|
||||
replace "@BUILD@", "${System.getenv().BUILD_NUMBER}"
|
||||
}
|
||||
|
||||
subprojects*.apply plugin: 'java'
|
||||
|
||||
allprojects {
|
||||
version = "${config.version.mod.major}.${config.version.mod.minor}.${config.version.mod.revis}"
|
||||
|
||||
if (System.getenv("BUILD_NUMBER") != null)
|
||||
version += ".${System.getenv("BUILD_NUMBER")}"
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name 'Calclavia Maven'
|
||||
url 'http://calclavia.com/maven'
|
||||
}
|
||||
maven {
|
||||
name = "forge"
|
||||
url = "http://files.minecraftforge.net/maven"
|
||||
}
|
||||
|
||||
ivy {
|
||||
name 'FMP'
|
||||
artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]"
|
||||
}
|
||||
|
||||
ivy {
|
||||
artifactPattern "http://www.chickenbones.craftsaddle.org/Files/New_Versions/1.6.4/[module]-dev%20[revision].[ext]"
|
||||
}
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile group: 'universalelectricity', name: 'Universal-Electricity', version: "${rootProject.config.version.universalelectricity}", classifier: "dev"
|
||||
compile group: 'calclaviacore', name: 'calclavia-core', version: "${rootProject.config.version.calclaviacore}", classifier: "dev"
|
||||
compile name: 'CodeChickenLib', version: "${config.version.minecraft}-${config.version.cclib}", ext: 'jar'
|
||||
compile name: 'ForgeMultipart', version: "${config.version.minecraft}-${config.version.fmp}", ext: 'jar'
|
||||
compile name: 'NotEnoughItems', version: "${config.version.nei}", ext: 'jar'
|
||||
}
|
||||
|
||||
jar {
|
||||
classifier = project.name
|
||||
dependsOn ":copyBuildXml"
|
||||
destinationDir = file (rootProject.getRootDir().getPath() + '/output')
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
artifact jar
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
url "file://var/www/maven"
|
||||
}
|
||||
}buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
name = "forge"
|
||||
url = "http://files.minecraftforge.net/maven"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
|
||||
}
|
||||
|
@ -113,8 +23,8 @@ buildProps.withReader {
|
|||
ext.config = new ConfigSlurper().parse prop
|
||||
}
|
||||
|
||||
group = "resonant-induction"
|
||||
archivesBaseName = "Resonant-Induction"
|
||||
group = "icbm"
|
||||
archivesBaseName = "ICBM"
|
||||
|
||||
minecraft {
|
||||
version = "${rootProject.config.version.minecraft}-${rootProject.config.version.forge}"
|
||||
|
@ -134,7 +44,7 @@ allprojects {
|
|||
if (System.getenv("BUILD_NUMBER") != null)
|
||||
version += ".${System.getenv("BUILD_NUMBER")}"
|
||||
|
||||
repositories {
|
||||
repositories {
|
||||
maven {
|
||||
name 'Calclavia Maven'
|
||||
url 'http://calclavia.com/maven'
|
||||
|
@ -182,7 +92,7 @@ allprojects {
|
|||
}
|
||||
|
||||
subprojects {
|
||||
archivesBaseName = "Resonant-Induction"
|
||||
archivesBaseName = "ICBM"
|
||||
|
||||
dependencies {
|
||||
compile rootProject
|
||||
|
@ -207,7 +117,7 @@ task copyBuildXml(type: Copy) {
|
|||
task apiZip(type: Zip) {
|
||||
classifier = 'api'
|
||||
from sourceSets*.allSource
|
||||
include 'resonantinduction/api/**'
|
||||
include 'icbm/api/**'
|
||||
destinationDir = file 'output'
|
||||
}
|
||||
|
||||
|
@ -222,8 +132,7 @@ import net.minecraftforge.gradle.delayed.*
|
|||
task createChangelog(type: ChangelogTask) {
|
||||
def jobName = "${System.getenv().JOB_NAME}"
|
||||
def buildNumber = "${System.getenv().BUILD_NUMBER}"
|
||||
jobName.replaceAll(' ','%20')
|
||||
|
||||
|
||||
setServerRoot(new DelayedString(project, 'http://ci.calclavia.com/'))
|
||||
setJobName(new DelayedString(project, jobName.toString()));
|
||||
setAuthName(new DelayedString(project, 'console_script'));
|
||||
|
|
Loading…
Reference in a new issue