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 { buildscript {
repositories { repositories {
maven { url "https://files.minecraftforge.net/maven" }
jcenter() jcenter()
mavenCentral() mavenCentral()
maven { url "https://files.minecraftforge.net/maven" }
} }
dependencies { dependencies {
classpath group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "3.+", changing: true classpath group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "3.+", changing: true

View File

@ -1,3 +1,26 @@
apply plugin: "maven-publish"
dependencies { dependencies {
compile project(":Noise2D") 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/"
}
}
}
}