Fixed Gradle indentation
This commit is contained in:
parent
0dc4d82f79
commit
6090aa688e
1 changed files with 34 additions and 35 deletions
59
build.gradle
59
build.gradle
|
@ -24,20 +24,20 @@ configFile.withReader {
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
ivy {
|
ivy {
|
||||||
name 'Forge FS legacy'
|
name 'Forge FS legacy'
|
||||||
artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]"
|
artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]"
|
||||||
}
|
}
|
||||||
ivy {
|
ivy {
|
||||||
name 'CB FS'
|
name 'CB FS'
|
||||||
artifactPattern "http://www.chickenbones.craftsaddle.org/Files/New_Versions/1.6.4/[module]-dev%20[revision].[ext]"
|
artifactPattern "http://www.chickenbones.craftsaddle.org/Files/New_Versions/1.6.4/[module]-dev%20[revision].[ext]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile name: 'WorldCore', version: "${config.minecraft_version}-${config.worldcore_version}", ext: 'jar'
|
compile name: 'WorldCore', version: "${config.minecraft_version}-${config.worldcore_version}", ext: 'jar'
|
||||||
compile name: 'ForgeMultipart', version: "${config.minecraft_version}-${config.fmp_version}", ext: 'jar'
|
compile name: 'ForgeMultipart', version: "${config.minecraft_version}-${config.fmp_version}", ext: 'jar'
|
||||||
compile name: 'CodeChickenCore', version: "${config.ccc_version}", ext: 'jar'
|
compile name: 'CodeChickenCore', version: "${config.ccc_version}", ext: 'jar'
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "biomesoplenty"
|
group = "biomesoplenty"
|
||||||
|
@ -45,32 +45,31 @@ version = config.mod_version
|
||||||
archivesBaseName = "BiomesOPlenty"
|
archivesBaseName = "BiomesOPlenty"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = config.minecraft_version + "-" + config.forge_version // grab latest forge
|
version = config.minecraft_version + "-" + config.forge_version // grab latest forge
|
||||||
assetDir = "run/assets"
|
assetDir = "run/assets"
|
||||||
|
|
||||||
replace "1.42.666.42.1", config.forge_version
|
replace "1.42.666.42.1", config.forge_version
|
||||||
}
|
}
|
||||||
|
|
||||||
// add some stuff to the version
|
// add some stuff to the version
|
||||||
version = "${config.minecraft_version}-${config.mod_version}.${System.getenv().BUILD_NUMBER}"
|
version = "${config.minecraft_version}-${config.mod_version}.${System.getenv().BUILD_NUMBER}"
|
||||||
|
|
||||||
processResources
|
processResources {
|
||||||
{
|
// replace stuff in the files we want.
|
||||||
// replace stuff in the files we want.
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include '**/*.info'
|
include '**/*.info'
|
||||||
include '**/*.properties'
|
include '**/*.properties'
|
||||||
|
|
||||||
// replaces
|
// replaces
|
||||||
expand ([
|
expand ([
|
||||||
'mod_version': project.config.mod_version,
|
'mod_version': project.config.mod_version,
|
||||||
'minecraft_version': project.config.minecraft_version,
|
'minecraft_version': project.config.minecraft_version,
|
||||||
'build_number': project.config.build_number,
|
'build_number': project.config.build_number,
|
||||||
'worldcore_version': project.config.worldcore_version
|
'worldcore_version': project.config.worldcore_version
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats we didnt do before
|
// copy everything else, thats we didnt do before
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
exclude '**/*.info'
|
exclude '**/*.info'
|
||||||
exclude '**/*.properties'
|
exclude '**/*.properties'
|
||||||
|
@ -83,13 +82,13 @@ jar {
|
||||||
attributes 'FMLCorePlugin': 'biomesoplenty.asm.BOPFMLLoadingPlugin'
|
attributes 'FMLCorePlugin': 'biomesoplenty.asm.BOPFMLLoadingPlugin'
|
||||||
attributes 'FMLCorePluginContainsFMLMod': 'true'
|
attributes 'FMLCorePluginContainsFMLMod': 'true'
|
||||||
}
|
}
|
||||||
appendix = 'universal'
|
appendix = 'universal'
|
||||||
}
|
}
|
||||||
|
|
||||||
// add a source jar
|
// add a source jar
|
||||||
task sourceJar(type: Jar) {
|
task sourceJar(type: Jar) {
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
appendix = 'src'
|
appendix = 'src'
|
||||||
}
|
}
|
||||||
|
|
||||||
task apiJar(type: Jar) {
|
task apiJar(type: Jar) {
|
||||||
|
@ -102,12 +101,12 @@ task apiJar(type: Jar) {
|
||||||
|
|
||||||
// because the normal output has been made to be obfuscated
|
// because the normal output has been made to be obfuscated
|
||||||
task deobfJar(type: Jar) {
|
task deobfJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
appendix = 'deobf'
|
appendix = 'deobf'
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
archives sourceJar
|
archives sourceJar
|
||||||
archives deobfJar
|
archives deobfJar
|
||||||
archives apiJar
|
archives apiJar
|
||||||
}
|
}
|
Loading…
Reference in a new issue