geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject [1/2] geode-examples git commit: GEODE-2831 Parameterize build for release verification
Date Sat, 17 Jun 2017 15:29:42 GMT
Repository: geode-examples
Updated Branches:
  refs/heads/release/1.2.0 [created] 7f93d95ad


GEODE-2831 Parameterize build for release verification

Add two gradle properties to allow the geode download url and
repository url to be configured on the command line.  This will
allow the release manager to test examples against a release
candidate.

./gradlew runAll \
  -PgeodeReleaseUrl="https://www.apache.org/dist/geode/1.1.1" \
  -PgeodeRepositoryUrl="https://repository.apache.org/content/repositories/releases"


Project: http://git-wip-us.apache.org/repos/asf/geode-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode-examples/commit/9f477381
Tree: http://git-wip-us.apache.org/repos/asf/geode-examples/tree/9f477381
Diff: http://git-wip-us.apache.org/repos/asf/geode-examples/diff/9f477381

Branch: refs/heads/release/1.2.0
Commit: 9f47738133a5dfaebc06dd4a73241b98f49fa4c4
Parents: 5ebbc81
Author: Anthony Baker <abaker@apache.org>
Authored: Wed May 10 07:40:15 2017 -0700
Committer: Anthony Baker <abaker@apache.org>
Committed: Wed May 10 07:42:41 2017 -0700

----------------------------------------------------------------------
 build.gradle      | 16 +++++++++++++---
 gradle.properties |  7 ++++++-
 2 files changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode-examples/blob/9f477381/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 3f4a569..e79e20e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,6 +21,11 @@ plugins {
   id "de.undercouch.download" version "3.1.2"
 }
 
+def downloadUrl = (geodeReleaseUrl != "") ? geodeReleaseUrl : 
+    "https://www.apache.org/dyn/closer.cgi?action=download&filename=geode/$geodeVersion"
+def verificationUrl = (geodeReleaseUrl != "") ? geodeReleaseUrl : 
+    "https://www.apache.org/dist/geode/$geodeVersion"
+
 def downloadFile = "apache-geode-${geodeVersion}.tar.gz"
 def installFile = "$buildDir/$downloadFile"
 def installDir = "$buildDir/apache-geode-${geodeVersion}"
@@ -33,8 +38,8 @@ task downloadGeode {
   doLast {
     download {
       src([
-        "https://www.apache.org/dyn/closer.cgi?action=download&filename=geode/$geodeVersion/$downloadFile",
-        "https://www.apache.org/dist/geode/$geodeVersion/${downloadFile}.sha256"
+        "$downloadUrl/$downloadFile",
+        "$verificationUrl/${downloadFile}.sha256"
       ])
       dest buildDir
     }
@@ -60,7 +65,12 @@ task installGeode(type: Copy, dependsOn: verifyGeode) {
 allprojects {
   apply plugin:'java'
 
-  repositories { mavenCentral() }
+  repositories { 
+    if (geodeRepositoryUrl != "") {
+      maven { url geodeRepositoryUrl }
+    }
+    mavenCentral()
+  }
 
   dependencies {
     compile "org.apache.geode:geode-core:$geodeVersion"

http://git-wip-us.apache.org/repos/asf/geode-examples/blob/9f477381/gradle.properties
----------------------------------------------------------------------
diff --git a/gradle.properties b/gradle.properties
index 60428c3..699d12a 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -15,9 +15,14 @@
 # limitations under the License.
 #
 version = 1.2.0-SNAPSHOT
-
 geodeVersion = 1.1.0
 
+# release properties, set these on the command line to validate against
+# a release candidate
+geodeRepositoryUrl =
+geodeReleaseUrl =
+
+# dependency versions
 assertjVersion = 3.6.2
 awaitilityVersion = 1.7.0
 junitVersion = 4.12


Mime
View raw message