Upgrade to Protobuf 3.9 (plus consistent XMLUnit declarations)
This commit is contained in:
parent
cdeb1fef5f
commit
45136aabd4
|
|
@ -86,8 +86,8 @@ dependencies {
|
|||
testCompile("io.projectreactor:reactor-test")
|
||||
testCompile("org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}")
|
||||
testCompile("com.google.code.findbugs:jsr305:3.0.2")
|
||||
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
|
||||
testCompile("org.xmlunit:xmlunit-assertj:2.6.2")
|
||||
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
|
||||
testCompile("javax.xml.bind:jaxb-api:2.3.1")
|
||||
testCompile("com.fasterxml.woodstox:woodstox-core:5.2.0") {
|
||||
exclude group: "stax", module: "stax-api"
|
||||
|
|
|
|||
|
|
@ -70,8 +70,8 @@ dependencies {
|
|||
exclude group: "stax", module: "stax-api"
|
||||
}
|
||||
testCompile(files(genJaxb.classesDir).builtBy(genJaxb))
|
||||
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
|
||||
testCompile("org.xmlunit:xmlunit-assertj:2.6.2")
|
||||
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
|
||||
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0.1")
|
||||
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0.1")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ dependencies {
|
|||
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-smile:${jackson2Version}")
|
||||
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${jackson2Version}")
|
||||
optional("com.google.code.gson:gson:2.8.5")
|
||||
optional("com.google.protobuf:protobuf-java-util:3.7.1")
|
||||
optional("com.google.protobuf:protobuf-java-util:3.9.0")
|
||||
optional("com.googlecode.protobuf-java-format:protobuf-java-format:1.4")
|
||||
optional("com.rometools:rome:1.12.1")
|
||||
optional("com.caucho:hessian:4.0.51")
|
||||
|
|
@ -78,8 +78,8 @@ dependencies {
|
|||
testCompile("com.squareup.okhttp3:mockwebserver:3.14.2")
|
||||
testCompile("org.jetbrains.kotlin:kotlin-reflect")
|
||||
testCompile("org.skyscreamer:jsonassert:1.5.0")
|
||||
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
|
||||
testCompile("org.xmlunit:xmlunit-assertj:2.6.2")
|
||||
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
|
||||
testRuntime("com.sun.mail:javax.mail:1.6.2")
|
||||
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0.1")
|
||||
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0.1")
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -231,6 +231,7 @@ public class ProtobufHttpMessageConverter extends AbstractHttpMessageConverter<M
|
|||
(this.protobufFormatSupport != null && this.protobufFormatSupport.supportsWriteOnly(mediaType)));
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
protected void writeInternal(Message message, HttpOutputMessage outputMessage)
|
||||
throws IOException, HttpMessageNotWritableException {
|
||||
|
|
@ -253,7 +254,7 @@ public class ProtobufHttpMessageConverter extends AbstractHttpMessageConverter<M
|
|||
}
|
||||
else if (TEXT_PLAIN.isCompatibleWith(contentType)) {
|
||||
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputMessage.getBody(), charset);
|
||||
TextFormat.print(message, outputStreamWriter);
|
||||
TextFormat.print(message, outputStreamWriter); // deprecated on Protobuf 3.9
|
||||
outputStreamWriter.flush();
|
||||
outputMessage.getBody().flush();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ dependencies {
|
|||
}
|
||||
optional("org.jetbrains.kotlin:kotlin-reflect")
|
||||
optional("org.jetbrains.kotlin:kotlin-stdlib")
|
||||
optional("com.google.protobuf:protobuf-java-util:3.7.1")
|
||||
optional("com.google.protobuf:protobuf-java-util:3.9.0")
|
||||
optional("org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutinesVersion}")
|
||||
optional("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:${coroutinesVersion}")
|
||||
testCompile("javax.xml.bind:jaxb-api:2.3.1")
|
||||
|
|
|
|||
Loading…
Reference in New Issue