This is an automated email from the ASF dual-hosted git repository.

jasonhuynh pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0869f06  GEODE-3629: Old versions will be pulled from the Apache Maven 
Repo (#790)
0869f06 is described below

commit 0869f06a17bd8c600aec6c9a8181bb5dad665970
Author: Jason Huynh <[email protected]>
AuthorDate: Wed Sep 20 13:17:55 2017 -0700

    GEODE-3629: Old versions will be pulled from the Apache Maven Repo (#790)
    
    * GEODE-3629: Old versions will be pulled from the Apache Maven Repo
---
 geode-old-versions/build.gradle | 45 ++++++++++-------------------------------
 1 file changed, 11 insertions(+), 34 deletions(-)

diff --git a/geode-old-versions/build.gradle b/geode-old-versions/build.gradle
index 7defb69..886f240 100644
--- a/geode-old-versions/build.gradle
+++ b/geode-old-versions/build.gradle
@@ -15,11 +15,7 @@
  * limitations under the License.
  */
 
-plugins {
-  id "de.undercouch.download" version "3.2.0"
-}
 
-import de.undercouch.gradle.tasks.download.Download
 disableMavenPublishing()
 
 project.ext.installs = new Properties();
@@ -38,41 +34,22 @@ def addOldVersion(def source, def geodeVersion, def 
downloadInstall) {
   dependencies.add "${source}Compile", 
"org.apache.geode:geode-cq:$geodeVersion"
   dependencies.add "${source}Compile", 
"org.apache.geode:geode-rebalancer:$geodeVersion"
 
-  project.ext.installs.setProperty(source, 
"$buildDir/apache-geode-${geodeVersion}")
-
-  task "downloadZipFile${source}" (type: Download) {
-    src 
"https://www.apache.org/dyn/closer.cgi?action=download&filename=geode/$geodeVersion/apache-geode-${geodeVersion}.tar.gz";
-    def destFile = new File(buildDir, "apache-geode-${geodeVersion}.tar.gz")
-    dest destFile
-    onlyIf {!destFile.exists()}
-  }
-
-  task "downloadSHA${source}" (type: Download) {
-    src 
"https://www.apache.org/dist/geode/${geodeVersion}/apache-geode-${geodeVersion}.tar.gz.sha256";
-    def destFile =  new File(buildDir, 
"apache-geode-${geodeVersion}.tar.gz.sha256")
-    dest destFile
-    onlyIf {!destFile.exists()}
-  }
+  if (downloadInstall) {
+    configurations.create("${source}OldInstall")
 
+    dependencies.add "${source}OldInstall", 
"org.apache.geode:apache-geode:$geodeVersion"
 
-  task "verifyGeode${source}" (type: 
de.undercouch.gradle.tasks.download.Verify, dependsOn: 
[tasks["downloadSHA${source}"], tasks["downloadZipFile${source}"]]) {
-    src tasks["downloadZipFile${source}"].dest
-    algorithm "SHA-256"
-    doFirst {
-      checksum new File(buildDir, 
"apache-geode-${geodeVersion}.tar.gz.sha256").text.split(' ')[0]
+    project.ext.installs.setProperty(source, 
"$buildDir/apache-geode-${geodeVersion}")
+    task "downloadAndUnzipFile${geodeVersion}"(type: Copy) {
+      from zipTree(configurations["${source}OldInstall"].singleFile)
+      into buildDir
     }
-  }
 
-  task "downloadAndUnzipFile${source}" (dependsOn: "verifyGeode${source}", 
type: Copy) {
-    from tarTree(tasks["downloadZipFile${source}"].dest)
-    into buildDir
-  }
-
-  if (downloadInstall) {
-    createGeodeClasspathsFile.dependsOn tasks["downloadAndUnzipFile${source}"]
+    createGeodeClasspathsFile.dependsOn 
tasks["downloadAndUnzipFile${geodeVersion}"]
   }
 }
 
+
 def generatedResources = "$buildDir/generated-resources/main"
 
 sourceSets {
@@ -90,7 +67,7 @@ task createGeodeClasspathsFile  {
   doLast {
     Properties versions = new Properties();
     project(':geode-old-versions').sourceSets.each {
-      versions.setProperty(it.name,it.runtimeClasspath.getAsPath()) 
+      versions.setProperty(it.name,it.runtimeClasspath.getAsPath())
     }
 
     classpathsFile.getParentFile().mkdirs();
@@ -112,7 +89,7 @@ task createGeodeClasspathsFile  {
   addOldVersion('test110', '1.1.0', false)
   addOldVersion('test111', '1.1.1', false)
   addOldVersion('test120', '1.2.0', true)
-
 }
 
 
+

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to