Update dependencies
This commit is contained in:
parent
c68e84f1e2
commit
4548c34055
2 changed files with 104 additions and 25 deletions
108
build.gradle
108
build.gradle
|
@ -16,30 +16,84 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'forge'
|
apply plugin: 'forge'
|
||||||
|
apply plugin: 'idea'
|
||||||
|
|
||||||
version = "5.08"
|
file "build.properties" withReader {
|
||||||
group= "gregtech" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
def prop = new Properties()
|
||||||
|
prop.load(it)
|
||||||
|
ext.config = new ConfigSlurper().parse prop
|
||||||
|
}
|
||||||
|
|
||||||
|
version = "${config.gt.version}"
|
||||||
|
group= "gregtech"
|
||||||
archivesBaseName = "gregtech"
|
archivesBaseName = "gregtech"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.7.10-10.13.4.1481-1.7.10"
|
version = "${config.minecraft.version}-${config.forge.version}"
|
||||||
runDir = "eclipse"
|
runDir = "eclipse"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
provided
|
||||||
|
embedded
|
||||||
|
compile.extendsFrom provided, embedded
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name 'Forge'
|
||||||
|
url 'http://files.minecraftforge.net/maven'
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
name = "chickenbones"
|
||||||
|
url = "http://chickenbones.net/maven/"
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
name = "ic2, forestry"
|
||||||
|
url = "http://maven.ic2.player.to/"
|
||||||
|
}
|
||||||
|
maven { // EnderIO & EnderCore
|
||||||
|
name 'tterrag Repo'
|
||||||
|
url "http://maven.tterrag.com"
|
||||||
|
}
|
||||||
|
maven { // AppleCore
|
||||||
|
url "http://www.ryanliptak.com/maven/"
|
||||||
|
}
|
||||||
|
ivy {
|
||||||
|
name "BuildCraft"
|
||||||
|
artifactPattern "http://www.mod-buildcraft.com/releases/BuildCraft/[revision]/[module]-[revision]-[classifier].[ext]"
|
||||||
|
}
|
||||||
|
ivy {
|
||||||
|
name 'CoFHLib'
|
||||||
|
artifactPattern "http://addons-origin.cursecdn.com/files/${config.cofhlib.cf}/[module]-[revision].[ext]"
|
||||||
|
}
|
||||||
|
ivy {
|
||||||
|
name 'CoFHCore'
|
||||||
|
artifactPattern "http://addons-origin.cursecdn.com/files/${config.cofhcore.cf}/[module]-[revision].[ext]"
|
||||||
|
}
|
||||||
|
ivy {
|
||||||
|
name 'Railcraft'
|
||||||
|
artifactPattern "http://addons-origin.cursecdn.com/files/${config.railcraft.cf}/[module]_[revision].[ext]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// you may put jars on which you depend on in ./libs
|
provided ("appeng:appliedenergistics2:${config.ae2.version}:dev") {
|
||||||
// or you may define them like so..
|
exclude module: '*'
|
||||||
//compile "some.group:artifact:version:classifier"
|
}
|
||||||
//compile "some.group:artifact:version"
|
provided "codechicken:CodeChickenLib:${config.minecraft.version}-${config.codechickenlib.version}:dev"
|
||||||
|
provided "codechicken:NotEnoughItems:${config.minecraft.version}-${config.nei.version}:dev"
|
||||||
// real examples
|
provided "net.industrial-craft:industrialcraft-2:${config.ic2.version}:dev"
|
||||||
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
|
provided "net.sengir.forestry:forestry_${config.minecraft.version}:${config.forestry.version}:dev"
|
||||||
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
|
provided "applecore:AppleCore:${config.applecore.version}:api"
|
||||||
|
provided "com.enderio.core:EnderCore:${config.enderiocore.version}:dev"
|
||||||
// for more info...
|
provided ("com.enderio:EnderIO:${config.enderio.version}:dev") {
|
||||||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
transitive = false
|
||||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
}
|
||||||
|
provided name: 'buildcraft', version: config.buildcraft.version, classifier: "dev", ext: 'jar'
|
||||||
|
provided name: 'CoFHLib', version: config.cofhlib.version, ext: 'jar'
|
||||||
|
provided name: 'CoFHCore', version: config.cofhcore.version, ext: 'jar'
|
||||||
|
provided name: 'Railcraft', version: config.railcraft.version, ext: 'jar'
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
|
@ -61,17 +115,21 @@ processResources
|
||||||
exclude 'mcmod.info'
|
exclude 'mcmod.info'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task sourceJar(type: Jar) {
|
task sourceJar(type: Jar) {
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
classifier = 'sources'}
|
classifier = 'sources'
|
||||||
|
}
|
||||||
|
|
||||||
task devJar(type: Jar) {
|
task devJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
classifier = 'dev'
|
classifier = 'dev'
|
||||||
manifest {
|
manifest {
|
||||||
//attributes 'FMLCorePlugin': 'WhateverLoaderClass'
|
//attributes 'FMLCorePlugin': 'WhateverLoaderClass'
|
||||||
//attributes 'FMLCorePluginContainsFMLMod': 'true'
|
//attributes 'FMLCorePluginContainsFMLMod': 'true'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
archives devJar
|
archives devJar
|
||||||
}
|
}
|
21
build.properties
Normal file
21
build.properties
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
minecraft.version=1.7.10
|
||||||
|
forge.version=10.13.4.1481-1.7.10
|
||||||
|
|
||||||
|
gt.version=5.08.31
|
||||||
|
|
||||||
|
ae2.version=rv2-beta-33
|
||||||
|
applecore.version=1.7.10-1.2.1+107.59407
|
||||||
|
buildcraft.version=7.1.11
|
||||||
|
codechickenlib.version=1.1.3.140
|
||||||
|
cofhcore.cf=2246/697
|
||||||
|
cofhcore.version=[1.7.10]3.0.3B4-302-dev
|
||||||
|
cofhlib.cf=2230/207
|
||||||
|
cofhlib.version=[1.7.10]1.0.0RC7-127
|
||||||
|
enderio.cf=2219/296
|
||||||
|
enderio.version=1.7.10-2.3.0.417_beta
|
||||||
|
enderiocore.version=1.7.10-0.1.0.25_beta
|
||||||
|
forestry.version=3.6.9.28
|
||||||
|
ic2.version=2.2.780-experimental
|
||||||
|
nei.version=1.0.3.57
|
||||||
|
railcraft.cf=2219/321
|
||||||
|
railcraft.version=1.7.10-9.4.0.0
|
Loading…
Reference in a new issue