Permalink
Browse files

Fix gathering of client dependencies for packaging

  • Loading branch information...
1 parent 4889b96 commit 007bc17006b67863a636b2d8a13b2d4b435b832d @aalmiray aalmiray committed Feb 14, 2011
Showing with 12 additions and 9 deletions.
  1. +1 −1 UlcGrailsPlugin.groovy
  2. +4 −4 application.properties
  3. +1 −1 plugin.xml
  4. +6 −3 scripts/_Events.groovy
View
@@ -22,7 +22,7 @@ import org.springframework.core.io.support.PathMatchingResourcePatternResolver
*/
class UlcGrailsPlugin {
// the plugin version
- def version = "0.3.2"
+ def version = "0.3.3"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.4 > *"
// the other plugins this plugin depends on
View
@@ -1,6 +1,6 @@
#Grails Metadata file
-#Tue Sep 28 13:40:12 CDT 2010
-app.grails.version=1.3.4
+#Mon Jan 03 13:20:56 CET 2011
+app.grails.version=1.3.5
app.name=ulc
-plugins.hibernate=1.3.4
-plugins.tomcat=1.3.4
+plugins.hibernate=1.3.5
+plugins.tomcat=1.3.5
View
@@ -1,4 +1,4 @@
-<plugin name='ulc' version='0.3.2' grailsVersion='1.3.4 &gt; *'>
+<plugin name='ulc' version='0.3.3' grailsVersion='1.3.4 &gt; *'>
<author>Canoo Engineering AG</author>
<authorEmail>ulc-team@canoo.com</authorEmail>
<title>ULC-Grails-Integration</title>
View
@@ -161,9 +161,12 @@ eventCreateWarStart = { warName, stagingDir ->
private def collectAllDependencies(List jarFiles, dependency, resolveReport) {
- jarFiles << resolveReport.getArtifactsReports(dependency.id).find {it.type == 'jar'}.localFile
- dependency.getDependencies('', 'runtime').each { transitiveDependency ->
- collectAllDependencies(jarFiles, transitiveDependency, resolveReport)
+ def jarFile = resolveReport.getArtifactsReports(dependency.id).find {it.type == 'jar'}
+ if(jarFile) {
+ jarFiles << jarFile.localFile
+ dependency.getDependencies('', 'runtime').each { transitiveDependency ->
+ collectAllDependencies(jarFiles, transitiveDependency, resolveReport)
+ }
}
}

0 comments on commit 007bc17

Please sign in to comment.