update build to publish to maven

This commit is contained in:
jane 2020-12-22 12:43:23 -05:00
parent 82e5c98a64
commit d9d497e1db
2 changed files with 13 additions and 3 deletions

View file

@ -5,6 +5,8 @@ plugins {
id 'maven-publish'
}
def ENV = System.getenv()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
@ -75,6 +77,14 @@ publishing {
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
maven {
def snapshotsUrl = 'http://192.168.1.156:8081/repository/maven-snapshots/'
def releasesUrl = 'http://192.168.1.156:8081/repository/maven-releases/'
url = version.endsWith('SNAPSHOT') ? snapshotsUrl : releasesUrl
credentials {
username 'admin'
password ENV.MAVEN_PASSWORD
}
}
}
}

View file

@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.10.8
# Mod Properties
mod_version = 0.1.5
mod_version = 0.1.6-SNAPSHOT
maven_group = pm.j4
archives_base_name = kerosene