TerraForged/TerraForgedAPI-fabric/build.gradle
liach ec2f6a4409 Update to 20w11a
Well, there is still some minor issues with new options object and compile fails for a mysterious nullable

Signed-off-by: liach <liach@users.noreply.github.com>
2020-03-17 00:02:20 -05:00

60 lines
1.6 KiB
Groovy

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"
version = "${fabric_mc_version}-${mod_version}"
archivesBaseName = "TerraForgedAPI-fabric"
repositories {
jcenter()
mavenCentral()
}
dependencies {
minecraft "com.mojang:minecraft:${fabric_mc_version}"
mappings "net.fabricmc:yarn:${fabric_mc_version}+build.${yarn_build}:v2"
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/"
}
}
}
}