2020-03-11 06:52:54 +01:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
maven { url "https://maven.fabricmc.net/" }
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath "net.fabricmc:fabric-loom:0.2.7-SNAPSHOT"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "fabric-loom"
|
|
|
|
apply plugin: "maven-publish"
|
|
|
|
apply plugin: "eclipse"
|
|
|
|
|
2020-03-17 06:02:20 +01:00
|
|
|
version = "${fabric_mc_version}-${mod_version}"
|
2020-03-11 06:52:54 +01:00
|
|
|
archivesBaseName = "TerraForgedAPI-fabric"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-03-17 06:02:20 +01:00
|
|
|
minecraft "com.mojang:minecraft:${fabric_mc_version}"
|
|
|
|
mappings "net.fabricmc:yarn:${fabric_mc_version}+build.${yarn_build}:v2"
|
2020-03-11 06:52:54 +01:00
|
|
|
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
|
|
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_api_version}"
|
|
|
|
compile project(":Noise2D")
|
|
|
|
compile project(":FeatureManager-fabric")
|
|
|
|
compile project(":TerraForgedCore")
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
from("$buildDir/classes/java/main")
|
|
|
|
from(project(":Noise2D").buildDir.getPath() + "/classes/java/main")
|
|
|
|
from(project(":FeatureManager-fabric").buildDir.getPath() + "/classes/java/main")
|
|
|
|
from(project(":TerraForgedCore").buildDir.getPath() + "/classes/java/main")
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
artifact jar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (System.getenv("MAVEN_USER") != null && System.getenv("MAVEN_PASS") != null) {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
credentials {
|
|
|
|
username System.getenv("MAVEN_USER")
|
|
|
|
password System.getenv("MAVEN_PASS")
|
|
|
|
}
|
|
|
|
name = "nexus"
|
|
|
|
url = "https://io.terraforged.com/repository/maven/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|