ExtraHoppers-forge/build.gradle

86 lines
1.8 KiB
Groovy
Raw Normal View History

2016-06-14 23:19:20 +00:00
buildscript {
repositories {
jcenter()
maven {
name "forge"
url "http://files.minecraftforge.net/maven/"
}
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
2016-06-14 23:19:20 +00:00
}
}
plugins {
id "com.matthewprenger.cursegradle" version "1.0.6"
}
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "kotlin"
2016-06-14 23:19:20 +00:00
version = mc_version + "-" + mod_version
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
minecraft {
version = mc_version + "-" + forge_version
runDir = "run"
mappings = mcp_mappings
replaceIn "ExtraHoppers.kt"
replaceIn "Reference.kt"
2016-06-14 23:19:20 +00:00
replace "@VERSION@", mod_version
useDepAts = true
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from (sourceSets.main.resources.srcDirs) {
include "mcmod.info"
expand "version": project.version, "mcversion": mc_version
}
from (sourceSets.main.resources.srcDirs) {
exclude "mcmod.info"
}
}
repositories {
maven {
name "shadowfacts"
url "http://mvn.rx14.co.uk/shadowfacts/"
}
maven {
url "http://dvs1.progwml6.com/files/maven"
}
}
dependencies {
deobfCompile group: "net.shadowfacts", name: "ShadowMC", version: mc_version + "-" + shadowmc_version
deobfCompile group: "net.shadowfacts", name: "Forgelin", version: forgelin_version
2016-06-14 23:19:20 +00:00
deobfCompile group: "mezz.jei", name: "jei_" + mc_version, version: jei_version
}
2016-07-05 15:40:31 +00:00
curseforge {
apiKey = project.hasProperty("curseForgeApiKey") ? project.curseForgeApiKey : ""
2016-06-14 23:19:20 +00:00
2016-07-05 15:40:31 +00:00
project {
id = "246215"
2016-06-14 23:19:20 +00:00
2016-11-20 14:36:16 +00:00
addGameVersion "1.11"
2016-07-05 15:40:31 +00:00
addGameVersion "Java 8"
2016-06-14 23:19:20 +00:00
2016-07-05 15:40:31 +00:00
mainArtifact(jar) {
releaseType = "release"
2016-06-14 23:19:20 +00:00
2016-07-05 15:40:31 +00:00
relations {
requiredLibrary "shadowmc"
}
}
}
}