Skip to content

Commit 01344c8

Browse files
committed
Add a starter for building a RESTful service with Spring HATEOAS
Closes gh-2396
1 parent ea7b5c6 commit 01344c8

File tree

6 files changed

+52
-10
lines changed

6 files changed

+52
-10
lines changed

spring-boot-dependencies/pom.xml

+11
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
<spring-integration.version>4.1.2.RELEASE</spring-integration.version>
121121
<spring-loaded.version>1.2.1.RELEASE</spring-loaded.version>
122122
<spring-mobile.version>1.1.3.RELEASE</spring-mobile.version>
123+
<spring-plugin.version>1.1.0.RELEASE</spring-plugin.version>
123124
<spring-security.version>3.2.5.RELEASE</spring-security.version>
124125
<spring-security-jwt.version>1.0.2.RELEASE</spring-security-jwt.version>
125126
<spring-social.version>1.1.0.RELEASE</spring-social.version>
@@ -262,6 +263,11 @@
262263
<artifactId>spring-boot-starter-groovy-templates</artifactId>
263264
<version>1.2.2.BUILD-SNAPSHOT</version>
264265
</dependency>
266+
<dependency>
267+
<groupId>org.springframework.boot</groupId>
268+
<artifactId>spring-boot-starter-hateoas</artifactId>
269+
<version>1.2.2.BUILD-SNAPSHOT</version>
270+
</dependency>
265271
<dependency>
266272
<groupId>org.springframework.boot</groupId>
267273
<artifactId>spring-boot-starter-hornetq</artifactId>
@@ -1377,6 +1383,11 @@
13771383
<artifactId>spring-mobile-device</artifactId>
13781384
<version>${spring-mobile.version}</version>
13791385
</dependency>
1386+
<dependency>
1387+
<groupId>org.springframework.plugin</groupId>
1388+
<artifactId>spring-plugin-core</artifactId>
1389+
<version>${spring-plugin.version}</version>
1390+
</dependency>
13801391
<dependency>
13811392
<groupId>org.springframework.security</groupId>
13821393
<artifactId>spring-security-bom</artifactId>

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ and Hibernate.
264264
|`spring-boot-starter-groovy-templates`
265265
|Support for the Groovy templating engine
266266

267+
|`spring-boot-starter-hateoas`
268+
|Supported for HATEOAS-based RESTful services via `spring-hateoas`.
269+
267270
|`spring-boot-starter-hornetq`
268271
|Support for "`Java Message Service API`" via HornetQ.
269272

spring-boot-samples/spring-boot-sample-hateoas/pom.xml

+1-10
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,7 @@
2121
<dependencies>
2222
<dependency>
2323
<groupId>org.springframework.boot</groupId>
24-
<artifactId>spring-boot-starter-web</artifactId>
25-
</dependency>
26-
<dependency>
27-
<groupId>org.springframework.hateoas</groupId>
28-
<artifactId>spring-hateoas</artifactId>
29-
</dependency>
30-
<dependency>
31-
<groupId>org.springframework.plugin</groupId>
32-
<artifactId>spring-plugin-core</artifactId>
33-
<version>1.1.0.RELEASE</version>
24+
<artifactId>spring-boot-starter-hateoas</artifactId>
3425
</dependency>
3526
<dependency>
3627
<groupId>org.springframework.boot</groupId>

spring-boot-starters/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<module>spring-boot-starter-data-solr</module>
3434
<module>spring-boot-starter-freemarker</module>
3535
<module>spring-boot-starter-groovy-templates</module>
36+
<module>spring-boot-starter-hateoas</module>
3637
<module>spring-boot-starter-hornetq</module>
3738
<module>spring-boot-starter-integration</module>
3839
<module>spring-boot-starter-jdbc</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>org.springframework.boot</groupId>
6+
<artifactId>spring-boot-starters</artifactId>
7+
<version>1.2.2.BUILD-SNAPSHOT</version>
8+
</parent>
9+
<artifactId>spring-boot-starter-hateoas</artifactId>
10+
<name>Spring Boot HATEOAS Starter</name>
11+
<description>Spring Boot HATEOAS Starter</description>
12+
<url>http://projects.spring.io/spring-boot/</url>
13+
<organization>
14+
<name>Pivotal Software, Inc.</name>
15+
<url>http://www.spring.io</url>
16+
</organization>
17+
<properties>
18+
<main.basedir>${basedir}/../..</main.basedir>
19+
</properties>
20+
<dependencies>
21+
<dependency>
22+
<groupId>org.springframework.boot</groupId>
23+
<artifactId>spring-boot-starter-web</artifactId>
24+
</dependency>
25+
<dependency>
26+
<groupId>org.springframework.hateoas</groupId>
27+
<artifactId>spring-hateoas</artifactId>
28+
</dependency>
29+
<dependency>
30+
<groupId>org.springframework.plugin</groupId>
31+
<artifactId>spring-plugin-core</artifactId>
32+
<scope>runtime</scope>
33+
</dependency>
34+
</dependencies>
35+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
provides: spring-hateoas

0 commit comments

Comments
 (0)