From 40215fb08e22479b442316e507803171cd4f482c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20=E0=B8=AB=E0=B8=87=E0=B8=B8=E0=B9=88=E0=B8=A2?= =?UTF-8?q?=E0=B8=95=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=B9=E0=B8=A5=20=5BNgu?= =?UTF-8?q?itragool=5D?= Date: Fri, 17 Mar 2017 21:48:11 +0700 Subject: [PATCH] https://github.com/subshare/bc-pgp-wot/issues/1 --- org.bouncycastle.openpgp.wot/build.gradle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/org.bouncycastle.openpgp.wot/build.gradle b/org.bouncycastle.openpgp.wot/build.gradle index 07a0b02..3b08818 100644 --- a/org.bouncycastle.openpgp.wot/build.gradle +++ b/org.bouncycastle.openpgp.wot/build.gradle @@ -3,11 +3,6 @@ apply plugin: 'osgi' apply plugin: 'maven' project.ext.bouncycastleVersion = '1.52' -project.ext.mavenDeployerRepoUrl = "file:/tmp/maven" - -def mavenDeployerRepoUrlSysProp = System.getProperty("mavenDeployerRepoUrl"); -if (mavenDeployerRepoUrlSysProp != null && ! mavenDeployerRepoUrlSysProp.isEmpty()) - project.ext.mavenDeployerRepoUrl = mavenDeployerRepoUrlSysProp; group = 'org.bouncycastle' version = '1.52.2-SNAPSHOT' @@ -15,6 +10,12 @@ version = '1.52.2-SNAPSHOT' sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 +project.ext.mavenDeployerRepoUrl = "file:/tmp/maven" + +def mavenDeployerRepoUrlSysProp = System.getProperty("mavenDeployerRepoUrl"); +if (mavenDeployerRepoUrlSysProp != null && ! mavenDeployerRepoUrlSysProp.isEmpty()) + project.ext.mavenDeployerRepoUrl = mavenDeployerRepoUrlSysProp; + if (version.endsWith("-SNAPSHOT")) project.ext.mavenDeployerRepoUrl = project.ext.mavenDeployerRepoUrl + "/snapshot"; else