From d451889be6bd13314880778fe2fe3094d3a8de3b Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 27 Jul 2018 16:51:49 +0800 Subject: [PATCH] build --- build.third_step0.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.third_step0.gradle b/build.third_step0.gradle index d98c77d5f..ef3a585be 100644 --- a/build.third_step0.gradle +++ b/build.third_step0.gradle @@ -44,6 +44,7 @@ def formattedDate = date.format('yyyy.MM.dd') def srcDir="." def maven_version="${version}.${formattedDate}" +def maven_version_build ="${version}-SNAPSHOT" def jar_version = version configurations { @@ -66,11 +67,20 @@ publishing { version maven_version from components.java } + + third_build(MavenPublication) { + groupId "com.fr.third" + artifactId "fine-third" + version maven_version_build + from components.java + } } repositories { maven { - url "http://mvn.finedevelop.com/repository/fanruan-release/" + def releasesRepoUrl = "http://mvn.finedevelop.com/repository/fanruan-release/" + def snapshotsRepoUrl = "http://mvn.finedevelop.com/repository/fanruan/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl credentials { username = findProperty("NEXUS_USERNAME") password = findProperty("NEXUS_PASSWORD")