Raise the minimum Spring Framework version to 4.3.x

Closes gh-284
This commit is contained in:
Andy Wilkinson
2016-07-26 12:09:20 +01:00
parent 65571d98dd
commit f2717363f0
11 changed files with 15 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ sonarqube {
}
ext {
springVersion = '4.2.5.RELEASE'
springVersion = '4.3.1.RELEASE'
javadocLinks = [
'http://docs.oracle.com/javase/8/docs/api/',
"http://docs.spring.io/spring-framework/docs/$springVersion/javadoc-api/",
@@ -60,7 +60,7 @@ subprojects {
mavenBom "org.springframework:spring-framework-bom:$springVersion"
}
dependencies {
dependency 'com.fasterxml.jackson.core:jackson-databind:2.4.6.1'
dependency 'com.fasterxml.jackson.core:jackson-databind:2.5.5'
dependency 'com.jayway.restassured:rest-assured:2.8.0'
dependency 'com.samskivert:jmustache:1.12'
dependency 'commons-codec:commons-codec:1.10'

View File

@@ -68,7 +68,7 @@ If you want to jump straight in, a number of sample applications are available:
Spring REST Docs has the following minimum requirements:
- Java 7
- Spring Framework 4.2
- Spring Framework 4.3
Additionally, the `spring-restdocs-restassured` module has the following minimum
requirements:

View File

@@ -31,6 +31,7 @@ ext {
}
ext['spring-restdocs.version'] = '1.2.0.BUILD-SNAPSHOT'
ext['spring.version']='4.3.1.RELEASE'
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web'

View File

@@ -47,6 +47,7 @@ dependencyManagement {
}
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
mavenBom "org.springframework:spring-framework-bom:4.3.1.RELEASE"
}
applyMavenExclusions false
}

View File

@@ -27,6 +27,7 @@ ext {
}
ext['spring-restdocs.version'] = '1.2.0.BUILD-SNAPSHOT'
ext['spring.version']='4.3.1.RELEASE'
dependencies {
compile 'org.springframework.boot:spring-boot-starter-data-jpa'

View File

@@ -18,6 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version>
<spring.version>4.3.1.RELEASE</spring.version>
<spring-restdocs.version>1.2.0.BUILD-SNAPSHOT</spring-restdocs.version>
</properties>

View File

@@ -30,6 +30,7 @@ ext {
snippetsDir = file('build/generated-snippets')
}
ext['spring.version']='4.3.1.RELEASE'
ext['spring-restdocs.version'] = '1.2.0.BUILD-SNAPSHOT'
dependencies {

View File

@@ -29,6 +29,8 @@ targetCompatibility = 1.7
ext {
snippetsDir = file('build/generated-snippets')
}
ext['spring.version']='4.3.1.RELEASE'
ext['spring-restdocs.version'] = '1.2.0.BUILD-SNAPSHOT'
dependencies {

View File

@@ -63,7 +63,7 @@ abstract class AbstractOperationMessage {
if (contentType == null) {
return null;
}
return contentType.getCharSet();
return contentType.getCharset();
}
}

View File

@@ -49,8 +49,8 @@ class PatternReplacingContentModifier implements ContentModifier {
@Override
public byte[] modifyContent(byte[] content, MediaType contentType) {
String original;
if (contentType != null && contentType.getCharSet() != null) {
original = new String(content, contentType.getCharSet());
if (contentType != null && contentType.getCharset() != null) {
original = new String(content, contentType.getCharset());
}
else {
original = new String(content);

View File

@@ -203,8 +203,8 @@ public final class UriModifyingOperationPreprocessor implements OperationPreproc
@Override
public byte[] modifyContent(byte[] content, MediaType contentType) {
String input;
if (contentType != null && contentType.getCharSet() != null) {
input = new String(content, contentType.getCharSet());
if (contentType != null && contentType.getCharset() != null) {
input = new String(content, contentType.getCharset());
}
else {
input = new String(content);