geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aging...@apache.org
Subject [20/50] [abbrv] incubator-geode git commit: GEODE-1203: include spring-web in gfshDependency.jar
Date Tue, 17 May 2016 00:38:29 GMT
GEODE-1203: include spring-web in gfshDependency.jar


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

Branch: refs/heads/feature/GEODE-1209
Commit: e20cc2fe5d769a06c565091a53e38d646b70039d
Parents: 554c0f5
Author: Jinmei Liao <jiliao@pivotal.io>
Authored: Wed May 11 08:40:28 2016 -0700
Committer: Anil <agingade@pivotal.io>
Committed: Mon May 16 17:31:54 2016 -0700

----------------------------------------------------------------------
 geode-assembly/build.gradle | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/e20cc2fe/geode-assembly/build.gradle
----------------------------------------------------------------------
diff --git a/geode-assembly/build.gradle b/geode-assembly/build.gradle
index ed5154e..f6167c5 100755
--- a/geode-assembly/build.gradle
+++ b/geode-assembly/build.gradle
@@ -45,6 +45,7 @@ configurations {
   bundled {
     description 'A dependency that is shipped with geode, but is not required to compile'
   }
+  gfshDependencies
 }
 
 dependencies {
@@ -72,6 +73,11 @@ dependencies {
   testCompile 'org.apache.httpcomponents:httpcore:' + project.'httpcore.version'
 
   testRuntime files("${System.getProperty('java.home')}/../lib/tools.jar")
+
+  gfshDependencies ('org.springframework:spring-web:' + project.'springframework.version'){
+    exclude module: 'spring-core'
+    exclude module: 'commons-logging'
+  }
 }
 
 sourceSets {
@@ -188,13 +194,12 @@ task depsJar (type: Jar, dependsOn: ':geode-core:classes') {
 // a dependent project.  Please fix me.
 task gfshDepsJar (type: Jar, dependsOn: ':geode-core:classes') {
   description 'Assembles the jar archive that defines the gfsh classpath.'
-  def springWeb = configurations.runtime.collect { it.getName() }.find { it.contains('spring-web')
}
   archiveName 'gfsh-dependencies.jar'
   doFirst {
     manifest {
       attributes("Class-Path": cp() + 
         ' ' + project(':geode-core').webJar.archiveName +
-        ' ' + springWeb
+        ' ' + configurations.gfshDependencies.collect{ it.getName() }.flatten().join(' ')
       )
     }
   }
@@ -325,6 +330,7 @@ distributions {
         from project(":geode-lucene").configurations.archives.allArtifacts.files
 
         from configurations.bundled
+        from configurations.gfshDependencies
 
         //These tasks are included as closures (wrapped in {}) because gradle may evaluate
         //this CopySpec before it evaluates the geode-core build file.


Mime
View raw message