Make Kotlin language as 1.3 for SF compatibility

* Fix Checkstyle violation
* Bring back SNAPSHOT versions for Spring deps
This commit is contained in:
Artem Bilan
2021-03-26 13:05:48 -04:00
parent f2009271dc
commit 50ce72884b
2 changed files with 9 additions and 7 deletions

View File

@@ -98,12 +98,12 @@ ext {
smackVersion = '4.3.5'
soapVersion = '1.4.0'
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.3.6'
springDataVersion = project.hasProperty('springDataVersion') ? project.springDataVersion : '2021.0.0-M5'
springKafkaVersion = '2.7.0-RC1'
springDataVersion = project.hasProperty('springDataVersion') ? project.springDataVersion : '2021.0.0-SNAPSHOT'
springKafkaVersion = '2.7.0-SNAPSHOT'
springRetryVersion = '1.3.1'
springSecurityVersion = project.hasProperty('springSecurityVersion') ? project.springSecurityVersion : '5.5.0-M3'
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.5'
springWsVersion = '3.1.0-M2'
springSecurityVersion = project.hasProperty('springSecurityVersion') ? project.springSecurityVersion : '5.5.0-SNAPSHOT'
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.6-SNAPSHOT'
springWsVersion = '3.1.0-SNAPSHOT'
tomcatVersion = '9.0.44'
xmlUnitVersion = '2.8.2'
xstreamVersion = '1.4.16'
@@ -203,7 +203,10 @@ configure(javaProjects) { subproject ->
compileKotlin {
kotlinOptions {
languageVersion = '1.3'
jvmTarget = '1.8'
freeCompilerArgs = ['-Xjsr305=strict']
allWarningsAsErrors = true
}
}
compileTestKotlin {

View File

@@ -111,9 +111,8 @@ public class RequestReplyScenariosWithTempReplyQueuesTests extends ActiveMQMulti
RequestReplyExchanger gateway = context.getBean(RequestReplyExchanger.class);
ConnectionFactory connectionFactory = context.getBean(ConnectionFactory.class);
final Destination requestDestination = context.getBean("siOutQueue", Destination.class);
Destination requestDestination = context.getBean("siOutQueue", Destination.class);
;
dmlc.setConnectionFactory(connectionFactory);
dmlc.setDestination(requestDestination);
dmlc.setMessageListener((SessionAwareMessageListener<Message>) (message, session) -> {