From d9d497e1db9c87f02921061d1a99918298b97fda Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Tue, 22 Dec 2020 12:43:23 -0500 Subject: [PATCH] update build to publish to maven --- build.gradle | 14 ++++++++++++-- gradle.properties | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 30d30f5..8a8fa7c 100644 --- a/build.gradle +++ b/build.gradle @@ -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 + } + } } -} +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 80220b4..9830438 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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