Update Spring Boot-based samples to 2.1.3

Closes gh-586
This commit is contained in:
Andy Wilkinson
2019-02-21 10:10:09 +00:00
parent ba48a7270a
commit 9ae2448790
6 changed files with 12 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.1.3.RELEASE'
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.1'
}
}
@@ -31,13 +31,12 @@ targetCompatibility = 1.8
ext {
snippetsDir = file('build/generated-snippets')
junitJupiterVersion = '5.0.0'
}
ext['spring-restdocs.version'] = '2.0.4.BUILD-SNAPSHOT'
dependencies {
asciidoctor "org.springframework.restdocs:spring-restdocs-asciidoctor:${project.ext['spring-restdocs.version']}"
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor'
compile 'org.springframework.boot:spring-boot-starter-web'
@@ -45,8 +44,8 @@ dependencies {
exclude group: 'junit', module: 'junit;'
}
testCompile 'org.springframework.restdocs:spring-restdocs-mockmvc'
testCompile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testCompile 'org.junit.jupiter:junit-jupiter-api'
testRuntime 'org.junit.jupiter:junit-jupiter-engine'
}
test {

View File

@@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.1.3.RELEASE'
}
}
@@ -34,11 +34,11 @@ ext {
ext['spring-restdocs.version'] = '2.0.4.BUILD-SNAPSHOT'
dependencies {
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor'
compile 'org.springframework.boot:spring-boot-starter-web'
testCompile 'io.rest-assured:rest-assured:3.0.2'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.springframework.restdocs:spring-restdocs-restassured'
asciidoctor "org.springframework.restdocs:spring-restdocs-asciidoctor:${project.ext['spring-restdocs.version']}"
}
test {

View File

@@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.1.3.RELEASE'
}
}

View File

@@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<version>2.1.3.RELEASE</version>
<relativePath />
</parent>

View File

@@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.1.3.RELEASE'
}
}
@@ -34,14 +34,11 @@ ext {
ext['spring-restdocs.version'] = '2.0.4.BUILD-SNAPSHOT'
dependencies {
asciidoctor "org.springframework.restdocs:spring-restdocs-asciidoctor:${project.ext['spring-restdocs.version']}"
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.springframework.boot:spring-boot-starter-hateoas'
runtime 'com.h2database:h2'
runtime 'org.atteo:evo-inflector:1.2.1'
testCompile 'com.jayway.jsonpath:json-path'
testCompile 'org.assertj:assertj-core'
testCompile 'org.springframework.boot:spring-boot-starter-test'

View File

@@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.1.3.RELEASE'
}
}
@@ -34,10 +34,8 @@ ext {
ext['spring-restdocs.version'] = '2.0.4.BUILD-SNAPSHOT'
dependencies {
asciidoctor "org.springframework.restdocs:spring-restdocs-asciidoctor:${project.ext['spring-restdocs.version']}"
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor'
compile 'org.springframework.boot:spring-boot-starter-web'
testCompile('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit', module: 'junit;'
}