ActuallyAdditions/build.gradle

80 lines
1.9 KiB
Groovy
Raw Normal View History

2014-11-07 14:19:05 +01:00
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
apply plugin: 'forge'
2015-04-26 20:07:57 +02:00
apply plugin: 'maven'
2014-11-07 14:19:05 +01:00
2015-05-20 22:39:43 +02:00
version = "1.7.10-0.0.5.0"
2015-03-07 12:51:28 +01:00
group = "ellpeck.actuallyadditions"
archivesBaseName = "ActuallyAdditions"
2014-11-07 14:19:05 +01:00
minecraft {
2015-04-26 20:07:57 +02:00
version = "1.7.10-10.13.3.1395-1710ls"
2014-11-07 14:19:05 +01:00
runDir = "idea"
}
2015-04-26 20:07:57 +02:00
repositories {
maven {
name "Mobius"
url "http://mobiusstrip.eu/maven"
}
maven {
name "ChickenBones"
url "http://chickenbones.net/maven/"
}
}
dependencies {
compile "mcp.mobius.waila:Waila:1.5.6_1.7.10"
/*When Compiling from Github, you will need to have this file present
because InventoryTweaks doesn't have a Maven Repo.
But no one is going to download and compile this anyway, so it doesn't really matter. */
compile files("lib/InventoryTweaks-api-1.58-147.jar")
2015-04-26 20:07:57 +02:00
}
2014-11-07 14:19:05 +01:00
task copyChickenBones(type: Copy, dependsOn: "extractUserDev") {
2015-04-26 20:07:57 +02:00
from { configurations.compile }
include "**/*Chicken*.jar", "**/*NotEnoughItems*.jar"
exclude "**/CodeChickenLib*"
into file("./run/mods")
mustRunAfter "deobfBinJar"
mustRunAfter "repackMinecraft"
2014-11-07 14:19:05 +01:00
}
2015-01-05 22:50:20 +01:00
processResources{
2014-11-07 14:19:05 +01:00
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
2015-04-26 21:09:25 +02:00
expand 'update':project.version, 'mcversion':project.minecraft.version
2014-11-07 14:19:05 +01:00
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
2015-01-05 22:50:20 +01:00
sourceSets {
main {
output.resourcesDir = output.classesDir
}
}