From ac1d0cab3bda5a18e5f9c16cab116069f3f5eda0 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 7 Jan 2015 17:50:36 +0000 Subject: [PATCH] Prevent Gradle from pulling in groovy-all with the remote shell starter Sadly, Gradle handle's exclusions differently to Maven even when it's processing a Maven pom. In this case groovy-all is pulled in via org.crashub:crash.shell where we've excluded it. This is enough to prevent Maven from pulling in groovy-all when you depend on the remote shell starter. org.crashub:crash.shell is also pulled in as a transitive dependency of a number of other dependencies and Gradle requires each of these to also exclude groovy-all for it to actually be excluded. This commit adds the additional exclusions that are required to make Gradle's behaviour sane. Fixes gh-2257 --- .../spring-boot-starter-remote-shell/pom.xml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml b/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml index 6c5b15bfa83..44ffebd1b9f 100644 --- a/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml +++ b/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml @@ -47,6 +47,12 @@ org.crashub crash.connectors.ssh + + + org.codehaus.groovy + groovy-all + + org.crashub @@ -75,15 +81,31 @@ spring-web org.springframework + + org.codehaus.groovy + groovy-all + org.crashub crash.plugins.cron + + + org.codehaus.groovy + groovy-all + + org.crashub crash.plugins.mail + + + org.codehaus.groovy + groovy-all + + org.crashub