diff --git a/TerraForgedAPI/build.gradle b/TerraForgedAPI/build.gradle index d724b3e..ca11376 100644 --- a/TerraForgedAPI/build.gradle +++ b/TerraForgedAPI/build.gradle @@ -1,8 +1,8 @@ buildscript { repositories { + maven { url "https://files.minecraftforge.net/maven" } jcenter() mavenCentral() - maven { url "https://files.minecraftforge.net/maven" } } dependencies { classpath group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "3.+", changing: true diff --git a/TerraForgedCore/build.gradle b/TerraForgedCore/build.gradle index 3389df0..8560f00 100644 --- a/TerraForgedCore/build.gradle +++ b/TerraForgedCore/build.gradle @@ -1,3 +1,26 @@ +apply plugin: "maven-publish" + dependencies { compile project(":Noise2D") +} + +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/" + } + } + } } \ No newline at end of file