Some upgrades; prepare for release

* Upgrade to `com.gradle.develocity` plugin
* Fix upgrade for Micrometer dependencies into `1.3.0` & `1.13.0`
since Dependabot has jumped to the next SNAPSHOT somehow
* Fix compilation warning in the `KafkaTemplate.observeSend()`
for unused `AutoClosable` resource - the `@SuppressWarnings("try")` is enough for the logic
This commit is contained in:
Artem Bilan
2024-05-20 10:35:58 -04:00
parent 97815175e4
commit bd8b82e9dd
3 changed files with 4 additions and 3 deletions

View File

@@ -63,8 +63,8 @@ ext {
kotlinCoroutinesVersion = '1.8.1'
log4jVersion = '2.23.1'
micrometerDocsVersion = '1.0.2'
micrometerVersion = '1.13.1-SNAPSHOT'
micrometerTracingVersion = '1.3.1-SNAPSHOT'
micrometerVersion = '1.13.0'
micrometerTracingVersion = '1.3.0'
mockitoVersion = '5.10.0'
reactorVersion = '2023.0.6'
scalaVersion = '2.13'

View File

@@ -7,7 +7,7 @@ pluginManagement {
}
plugins {
id 'com.gradle.enterprise' version '3.17.4'
id 'com.gradle.develocity' version '3.17.4'
id 'io.spring.ge.conventions' version '0.0.17'
}

View File

@@ -761,6 +761,7 @@ public class KafkaTemplate<K, V> implements KafkaOperations<K, V>, ApplicationCo
}
}
@SuppressWarnings("try")
private CompletableFuture<SendResult<K, V>> observeSend(final ProducerRecord<K, V> producerRecord) {
Observation observation = KafkaTemplateObservation.TEMPLATE_OBSERVATION.observation(
this.observationConvention, DefaultKafkaTemplateObservationConvention.INSTANCE,