From f22a6ae9d01ebba6b2241a1bf5f85cf3b81197a7 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Fri, 2 Dec 2016 04:46:57 +0700 Subject: [PATCH] Added repository rehlds-dev --- buildSrc/build.gradle | 3 +++ flightrec/decoder_api/build.gradle | 4 ++-- publish.gradle | 7 ++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 8b5cf00..e206d80 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -9,6 +9,9 @@ repositories { maven { url 'http://nexus.rehlds.org/nexus/content/repositories/rehlds-snapshots/' } + maven { + url 'http://nexus.rehlds.org/nexus/content/repositories/rehlds-dev/' + } } dependencies { diff --git a/flightrec/decoder_api/build.gradle b/flightrec/decoder_api/build.gradle index e89cb0a..deff67b 100644 --- a/flightrec/decoder_api/build.gradle +++ b/flightrec/decoder_api/build.gradle @@ -56,8 +56,8 @@ publishing { publishing { repositories { maven { - if (project.version.contains('SNAPSHOT')) { - url "http://nexus.rehlds.org/nexus/content/repositories/rehlds-snapshots/" + if (project.version.contains('dev')) { + url "http://nexus.rehlds.org/nexus/content/repositories/rehlds-dev/" } else { url "http://nexus.rehlds.org/nexus/content/repositories/rehlds-releases/" } diff --git a/publish.gradle b/publish.gradle index 7252ebe..ffd3165 100644 --- a/publish.gradle +++ b/publish.gradle @@ -90,6 +90,11 @@ publishing { resolveStrategy = DELEGATE_FIRST name project.name description project.description + properties { + commitDate project.ext.rehldsVersionInfo.commitDate + commitSHA project.ext.rehldsVersionInfo.commitSHA + } + //url github //scm { // url "${github}.git" @@ -129,7 +134,7 @@ publishing { repositories { maven { if (project.version.contains('dev')) { - url "http://nexus.rehlds.org/nexus/content/repositories/rehlds-snapshots/" + url "http://nexus.rehlds.org/nexus/content/repositories/rehlds-dev/" } else { url "http://nexus.rehlds.org/nexus/content/repositories/rehlds-releases/" }