TerraForged/TerraForgedAPI/build.gradle

60 lines
1.5 KiB
Groovy
Raw Normal View History

2020-02-25 23:16:30 +00:00
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://files.minecraftforge.net/maven" }
}
dependencies {
classpath group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "3.+", changing: true
}
}
apply plugin: "net.minecraftforge.gradle"
apply plugin: "eclipse"
apply plugin: "maven"
version = "${version}-mc${mc_version}"
archivesBaseName = "TerraForgedAPI"
repositories {
jcenter()
mavenCentral()
}
dependencies {
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
compile project(":Noise2D")
compile project(":FeatureManager")
compile project(":TerraForgedCore")
}
minecraft {
mappings channel: mcp_channel, version: mcp_version
2020-02-26 10:00:30 +00:00
}
2020-02-26 10:50:35 +00:00
task deobfApiJar(type: Jar) {
duplicatesStrategy = "EXCLUDE"
from("$buildDir/classes/java/main")
from(fileTree(project(":Noise2D").buildDir.getPath() + "/classes/java/main"))
from(fileTree(project(":FeatureManager").buildDir.getPath() + "/classes/java/main"))
from(fileTree(project(":TerraForgedCore").buildDir.getPath() + "/classes/java/main"))
}
jar {
enabled(false)
}
install {
dependsOn(deobfApiJar)
}
2020-02-26 10:00:30 +00:00
uploadArchives {
2020-02-26 10:50:35 +00:00
dependsOn(deobfApiJar)
2020-02-26 10:00:30 +00:00
repositories {
mavenDeployer {
2020-02-26 10:16:55 +00:00
repository(url: "https://io.terraforged.com/repository/maven/") {
authentication(userName: System.getenv("MAVEN_USER"), password: System.getenv("MAVEN_PASS"))
}
2020-02-26 10:00:30 +00:00
}
}
2020-02-25 23:16:30 +00:00
}