diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml
index fc1821d988e..e42d4174e76 100644
--- a/spring-boot/pom.xml
+++ b/spring-boot/pom.xml
@@ -74,6 +74,11 @@
groovy
true
+
+ org.codehaus.groovy
+ groovy-xml
+ true
+
org.eclipse.jetty
jetty-webapp
diff --git a/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java b/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java
index 99072b4faa8..95348060298 100644
--- a/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java
+++ b/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java
@@ -70,6 +70,17 @@ public class BeanDefinitionLoaderTests {
}
+ @Test
+ public void loadGroovyResourceWithNamespace() throws Exception {
+ ClassPathResource resource = new ClassPathResource("sample-namespace.groovy",
+ getClass());
+ BeanDefinitionLoader loader = new BeanDefinitionLoader(this.registry, resource);
+ int loaded = loader.load();
+ assertThat(loaded, equalTo(1));
+ assertTrue(this.registry.containsBean("myGroovyComponent"));
+
+ }
+
@Test
public void loadPackage() throws Exception {
BeanDefinitionLoader loader = new BeanDefinitionLoader(this.registry,