Automatically align version of samples' dependency with main version

This commit enhances the tasks that build the samples to
automatically update the version of their spring-restdocs dependency
to match the version of the main project.
This commit is contained in:
Andy Wilkinson
2015-09-08 11:20:28 +01:00
parent c2da4c912a
commit fece9547ea
3 changed files with 34 additions and 8 deletions

View File

@@ -18,6 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version>
<spring-restdocs.version>1.0.0.BUILD-SNAPSHOT</spring-restdocs.version>
</properties>
<dependencies>
@@ -49,7 +50,7 @@
<dependency>
<groupId>org.springframework.restdocs</groupId>
<artifactId>spring-restdocs-mockmvc</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<version>${spring-restdocs.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
@@ -124,4 +125,4 @@
</repository>
</repositories>
</project>
</project>