Skip to content

Commit

Permalink
cleaned up w/ help from @AbrarSyed
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Nov 22, 2013
1 parent dc4bbb8 commit f7ade24
Showing 1 changed file with 28 additions and 56 deletions.
84 changes: 28 additions & 56 deletions build.gradle
@@ -1,9 +1,9 @@
/*
*
* Tinkers Construct
* Master build file
*
* Authors: Sunstrike, ProgWML6
* Based on the work of AbrarSyed in ForgeEssentials
* Help from AbrarSyed
*/

buildscript {
Expand All @@ -13,18 +13,9 @@ buildscript {
name = 'ForgeFS'
url = 'http://files.minecraftforge.net/maven'
}
ivy {
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]"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
classpath name: 'ForgeMultipart', version: '1.6.4-1.0.0.211', type: 'jar'
classpath name: 'CodeChickenLib', version: '1.6.4-1.0.0.44', type: 'jar'
classpath name: 'NotEnoughItems', version: '1.6.1.5_d1', type: 'jar'
}
}

Expand All @@ -35,54 +26,35 @@ minecraft {
assetDir = 'run/assets'
}

allprojects {
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
repositories {
ivy {
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]"
}
}

subprojects {
apply plugin: 'java'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'

afterEvaluate {
jar {
manifest {
attributes 'FMLCorePlugin': 'tconstruct.preloader.TConstructLoaderContainer'
attributes 'FMLCorePluginContainsFMLMod': 'true'
}
}

rootProject.tasks.reobf {
reobf(tasks.jar) { spec ->
spec.classpath = sourceSets.main.compileClasspath
}
}
}

repositories {
maven {
name 'ForgeFS'
url 'http://files.minecraftforge.net/maven'
}
maven {
name 'MinecraftS3'
url 'http://s3.amazonaws.com/Minecraft.Download/libraries'
}

mavenCentral()
}
sourceSets {
main {
resources {
srcDir 'resources'
}
}
}

jar {
destinationDir = new File(rootProject.getBuildDir(), 'libs')
}
dependencies {
compile name: 'ForgeMultipart', version: '1.6.4-1.0.0.211'
compile name: 'CodeChickenLib', version: '1.6.4-1.0.0.44'
compile name: 'NotEnoughItems', version: '1.6.1.5_d1'
}

dependencies {
compile rootProject
}
sourceSets {
main {
resources {
srcDir 'resources'
}
}
}
jar {
manifest {
attributes 'FMLCorePlugin': 'tconstruct.preloader.TConstructLoaderContainer'
attributes 'FMLCorePluginContainsFMLMod': 'true'
}
}

0 comments on commit f7ade24

Please sign in to comment.