Gradlelized BOP

This commit is contained in:
Adubbz 2013-12-12 10:31:42 +11:00
parent 04a2d8e0ff
commit 92ead139f5
1348 changed files with 285 additions and 39493 deletions

View File

@ -1,29 +0,0 @@
BLOCKS:
Pebbles: Small rocks scattered around forest biomes.
Pinecone: Pinecone that grows under spruce and fir leaves.
Origin Blocks: Planks, Gravel, Cobblestone, Mossy Cobblestone, Bricks, Block of Diamond, Block of Gold, Block of Iron, Lapis Lazuli Block.
Alpha Essence Ore: Found in the Promised Land. Requires an Amethyst pickaxe to mine.
Omega Essence Ore: Found in the Nether. Requires an Amethyst pickaxe to mine.
---
ITEMS:
Alpha Essence: Mined from Alpha Essence Ore. Used to turn certain blocks into their Origin counterparts.
Omega Essence: Mined from Omega Essence Ore. Used to turn Origin blocks back to their normal counterparts.
---
UNDERGROUND BIOMES (If possible):
Crystal Caverns: Purple, translucent crystals growing around the cavern.
Flooded Caverns: Lots of water springs and ponds.
Overgrown Caverns: Vines hanging from the ceiling, small shrubs, and lots of mushrooms.

116
build.gradle Normal file
View File

@ -0,0 +1,116 @@
buildscript {
repositories {
mavenCentral()
maven {
name = "ForgeFS"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
}
}
apply plugin: "forge"
// define the properties file
ext.configFile = file "build.properties"
configFile.withReader {
// read config. it shall from now on be referenced as simply config or as project.config
def prop = new Properties()
prop.load(it)
project.ext.config = new ConfigSlurper().parse prop
}
repositories {
ivy {
name 'Forge FS legacy'
artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]"
}
ivy {
name 'CB FS'
artifactPattern "http://www.chickenbones.craftsaddle.org/Files/New_Versions/1.6.4/[module]-dev%20[revision].[ext]"
}
maven {
name 'ForgeFS'
url 'http://files.minecraftforge.net/maven'
}
}
dependencies {
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: 'CodeChickenCore', version: "${config.ccc_version}", ext: 'jar'
}
group = "biomesoplenty"
version = config.mod_version
archivesBaseName = "BiomesOPlenty"
minecraft {
version = config.minecraft_version + "-" + config.forge_version // grab latest forge
assetDir = "run/assets"
replace "1.42.666.42.1", config.forge_version
}
// add some stuff to the version
version = "${config.minecraft_version}-${config.mod_version}.${System.getenv().BUILD_NUMBER}"
processResources
{
// replace stuff in the files we want.
from(sourceSets.main.resources.srcDirs) {
include '**/*.info'
include '**/*.properties'
// replaces
expand 'mod_version': project.config.mod_version, 'minecraft_version': project.config.minecraft_version, 'build_number': project.config.build_number, 'worldcore_version': project.config.worldcore_version
}
// copy everything else, thats we didnt do before
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.info'
exclude '**/*.properties'
}
}
// change the name of my obfuscated jar
jar {
manifest {
attributes 'FMLCorePlugin': 'biomesoplenty.asm.BOPFMLLoadingPlugin'
attributes 'FMLCorePluginContainsFMLMod': 'true'
}
appendix = 'universal'
}
// add a source jar
task sourceJar(type: Jar) {
from sourceSets.main.allSource
appendix = 'src'
}
javadoc {
failOnError = false
}
task apiJar(type: Jar) {
from(sourceSets.main.java)
{
include "biomesoplenty/api/*"
}
appendix = 'api'
}
// because the normal output has been made to be obfuscated
task deobfJar(type: Jar) {
from sourceSets.main.output
appendix = 'deobf'
}
artifacts {
archives sourceJar
archives deobfJar
archives apiJar
}

6
build.properties Normal file
View File

@ -0,0 +1,6 @@
minecraft_version=1.6.4
forge_version=9.11.1.964
mod_version=1.1.3
worldcore_version=1.1.0.17
fmp_version=1.0.0.182
ccc_version=0.9.0.7

View File

@ -1,4 +0,0 @@
Manifest-Version: 1.0
FMLCorePlugin: biomesoplenty.asm.BOPFMLLoadingPlugin
FMLCorePluginContainsFMLMod: biomesoplenty.BiomesOPlenty

View File

@ -1,9 +0,0 @@
[
{
"repo": "http://files.minecraftforge.net/WorldCore/",
"file": "WorldCore-universal-@MC_VERSION@-@WORLDCORE_VERSION@.jar",
"dev": "WorldCore-dev-@MC_VERSION@-@WORLDCORE_VERSION@.jar",
"class": "worldcore.asm.WCFMLLoadingPlugin",
"version": "@WORLDCORE_VERSION@"
}
]

Some files were not shown because too many files have changed in this diff Show More