diff --git a/build.gradle b/build.gradle index 66d4beceb3..1fa0b9ff58 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlinVersion = '1.3.31' + ext.kotlinVersion = '1.3.40' repositories { maven { url 'https://repo.spring.io/plugins-release' } } @@ -7,7 +7,6 @@ buildscript { classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.18' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion" - classpath 'io.spring.nohttp:nohttp-gradle:0.0.2.RELEASE' } } @@ -18,6 +17,7 @@ plugins { id "org.sonarqube" version '2.7.1' id 'org.asciidoctor.convert' version '1.6.1' id 'org.ajoberstar.grgit' version '3.1.1' + id "io.spring.nohttp" version "0.0.3.RELEASE" } apply plugin: 'io.spring.nohttp' @@ -84,11 +84,11 @@ subprojects { subproject -> jacksonVersion = '2.9.9' jaywayJsonPathVersion = '2.4.0' junit4Version = '4.12' - junitJupiterVersion = '5.5.0' - junitPlatformVersion = '1.5.0' + junitJupiterVersion = '5.5.1' + junitPlatformVersion = '1.5.1' kafkaVersion = '2.3.0' - log4jVersion = '2.11.2' - mockitoVersion = '2.28.2' + log4jVersion = '2.12.0' + mockitoVersion = '3.0.0' scalaVersion = '2.12' springRetryVersion = '1.2.4.RELEASE' springVersion = '5.2.0.BUILD-SNAPSHOT' @@ -232,7 +232,7 @@ project ('spring-kafka') { compile "org.springframework:spring-messaging:$springVersion" compile "org.springframework:spring-tx:$springVersion" compile ("org.springframework.retry:spring-retry:$springRetryVersion") { - exclude group: 'org.springframework', module: 'spring-core' + exclude group: 'org.springframework' } compile "org.apache.kafka:kafka-clients:$kafkaVersion" compile ("org.apache.kafka:kafka-streams:$kafkaVersion", optional) @@ -263,7 +263,9 @@ project ('spring-kafka-test') { dependencies { compile "org.springframework:spring-context:$springVersion" compile "org.springframework:spring-test:$springVersion" - compile "org.springframework.retry:spring-retry:$springRetryVersion" + compile ("org.springframework.retry:spring-retry:$springRetryVersion") { + exclude group: 'org.springframework' + } compile "org.apache.kafka:kafka-clients:$kafkaVersion:test" compile "org.apache.kafka:kafka-streams:$kafkaVersion" diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 87b738cbd0..5c2d1cf016 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 44e7c4d1d7..4b7e1f3d38 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index af6708ff22..8e25e6c19d 100755 --- a/gradlew +++ b/gradlew @@ -1,5 +1,21 @@ #!/usr/bin/env sh +# +# Copyright 2015 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. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + ############################################################################## ## ## Gradle start up script for UN*X @@ -28,7 +44,7 @@ APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m"' +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" diff --git a/gradlew.bat b/gradlew.bat index 6d57edc706..9618d8d960 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,3 +1,19 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + @if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome diff --git a/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaBootstrapConfiguration.java b/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaBootstrapConfiguration.java index eac6f8dbbf..074fcd961d 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaBootstrapConfiguration.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaBootstrapConfiguration.java @@ -33,19 +33,19 @@ * * @author Stephane Nicoll * @author Gary Russell + * @author Artem Bilan * * @see KafkaListenerAnnotationBeanPostProcessor * @see KafkaListenerEndpointRegistry * @see EnableKafka */ -@Configuration +@Configuration(proxyBeanMethods = false) public class KafkaBootstrapConfiguration { - @SuppressWarnings("rawtypes") @Bean(name = KafkaListenerConfigUtils.KAFKA_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME) @Role(BeanDefinition.ROLE_INFRASTRUCTURE) - public KafkaListenerAnnotationBeanPostProcessor kafkaListenerAnnotationProcessor() { - return new KafkaListenerAnnotationBeanPostProcessor(); + public KafkaListenerAnnotationBeanPostProcessor kafkaListenerAnnotationProcessor() { + return new KafkaListenerAnnotationBeanPostProcessor<>(); } @Bean(name = KafkaListenerConfigUtils.KAFKA_LISTENER_ENDPOINT_REGISTRY_BEAN_NAME) diff --git a/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaStreamsDefaultConfiguration.java b/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaStreamsDefaultConfiguration.java index eb3f65a91e..7883cd839e 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaStreamsDefaultConfiguration.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaStreamsDefaultConfiguration.java @@ -39,7 +39,7 @@ * * @since 1.1.4 */ -@Configuration +@Configuration(proxyBeanMethods = false) public class KafkaStreamsDefaultConfiguration { /** @@ -56,8 +56,8 @@ public class KafkaStreamsDefaultConfiguration { @Bean(name = DEFAULT_STREAMS_BUILDER_BEAN_NAME) public StreamsBuilderFactoryBean defaultKafkaStreamsBuilder( @Qualifier(DEFAULT_STREAMS_CONFIG_BEAN_NAME) - ObjectProvider streamsConfigProvider, - ObjectProvider customizerProvider) { + ObjectProvider streamsConfigProvider, + ObjectProvider customizerProvider) { KafkaStreamsConfiguration streamsConfig = streamsConfigProvider.getIfAvailable(); if (streamsConfig != null) {