publish Core & Noise2D to maven
This commit is contained in:
parent
92d3eb81fe
commit
9f31b515ad
@ -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
|
||||
|
@ -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/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user