publish Core & Noise2D to maven

This commit is contained in:
dags- 2020-03-04 20:56:05 +00:00
parent 92d3eb81fe
commit 9f31b515ad
2 changed files with 24 additions and 1 deletions

View File

@ -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

View File

@ -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/"
}
}
}
}