From 01344c86175a072d02570e6019158076c993130b Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 22 Jan 2015 15:22:50 +0000 Subject: [PATCH] Add a starter for building a RESTful service with Spring HATEOAS Closes gh-2396 --- spring-boot-dependencies/pom.xml | 11 ++++++ .../src/main/asciidoc/using-spring-boot.adoc | 3 ++ .../spring-boot-sample-hateoas/pom.xml | 11 +----- spring-boot-starters/pom.xml | 1 + .../spring-boot-starter-hateoas/pom.xml | 35 +++++++++++++++++++ .../main/resources/META-INF/spring.provides | 1 + 6 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 spring-boot-starters/spring-boot-starter-hateoas/pom.xml create mode 100644 spring-boot-starters/spring-boot-starter-hateoas/src/main/resources/META-INF/spring.provides diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index e8affc89d0..56fb64726b 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -120,6 +120,7 @@ 4.1.2.RELEASE 1.2.1.RELEASE 1.1.3.RELEASE + 1.1.0.RELEASE 3.2.5.RELEASE 1.0.2.RELEASE 1.1.0.RELEASE @@ -262,6 +263,11 @@ spring-boot-starter-groovy-templates 1.2.2.BUILD-SNAPSHOT + + org.springframework.boot + spring-boot-starter-hateoas + 1.2.2.BUILD-SNAPSHOT + org.springframework.boot spring-boot-starter-hornetq @@ -1377,6 +1383,11 @@ spring-mobile-device ${spring-mobile.version} + + org.springframework.plugin + spring-plugin-core + ${spring-plugin.version} + org.springframework.security spring-security-bom diff --git a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc index 539ecdd085..9e8649a0a2 100644 --- a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc +++ b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc @@ -264,6 +264,9 @@ and Hibernate. |`spring-boot-starter-groovy-templates` |Support for the Groovy templating engine +|`spring-boot-starter-hateoas` +|Supported for HATEOAS-based RESTful services via `spring-hateoas`. + |`spring-boot-starter-hornetq` |Support for "`Java Message Service API`" via HornetQ. diff --git a/spring-boot-samples/spring-boot-sample-hateoas/pom.xml b/spring-boot-samples/spring-boot-sample-hateoas/pom.xml index 576817d6c2..c9a9adfd38 100644 --- a/spring-boot-samples/spring-boot-sample-hateoas/pom.xml +++ b/spring-boot-samples/spring-boot-sample-hateoas/pom.xml @@ -21,16 +21,7 @@ org.springframework.boot - spring-boot-starter-web - - - org.springframework.hateoas - spring-hateoas - - - org.springframework.plugin - spring-plugin-core - 1.1.0.RELEASE + spring-boot-starter-hateoas org.springframework.boot diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 3436e2cd07..1863a594f8 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -33,6 +33,7 @@ spring-boot-starter-data-solr spring-boot-starter-freemarker spring-boot-starter-groovy-templates + spring-boot-starter-hateoas spring-boot-starter-hornetq spring-boot-starter-integration spring-boot-starter-jdbc diff --git a/spring-boot-starters/spring-boot-starter-hateoas/pom.xml b/spring-boot-starters/spring-boot-starter-hateoas/pom.xml new file mode 100644 index 0000000000..dfcb7b79bc --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-hateoas/pom.xml @@ -0,0 +1,35 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starters + 1.2.2.BUILD-SNAPSHOT + + spring-boot-starter-hateoas + Spring Boot HATEOAS Starter + Spring Boot HATEOAS Starter + http://projects.spring.io/spring-boot/ + + Pivotal Software, Inc. + http://www.spring.io + + + ${basedir}/../.. + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.hateoas + spring-hateoas + + + org.springframework.plugin + spring-plugin-core + runtime + + + diff --git a/spring-boot-starters/spring-boot-starter-hateoas/src/main/resources/META-INF/spring.provides b/spring-boot-starters/spring-boot-starter-hateoas/src/main/resources/META-INF/spring.provides new file mode 100644 index 0000000000..216137d0d1 --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-hateoas/src/main/resources/META-INF/spring.provides @@ -0,0 +1 @@ +provides: spring-hateoas