Skip to content

Commit c48147c

Browse files
Upgrade Kafka dependencies to 3.9.1 and set scope to compileOnly (#8)
* Upgrade Kafka dependencies to 3.9.1 and set scope to compileOnly Upgrade junit dependencies * Fix removed Utils.join method
1 parent 1ad193e commit c48147c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ repositories {
1818

1919
dependencies {
2020

21-
implementation 'org.apache.kafka:connect-api:3.1.2'
22-
implementation 'org.apache.kafka:connect-transforms:3.1.2'
23-
implementation 'org.apache.kafka:kafka_2.13:3.1.2'
21+
compileOnly 'org.apache.kafka:connect-api:3.9.1'
22+
compileOnly 'org.apache.kafka:connect-transforms:3.9.1'
23+
compileOnly 'org.apache.kafka:kafka_2.13:3.9.1'
2424

25+
testImplementation 'org.apache.kafka:connect-api:3.9.1'
26+
testImplementation 'org.apache.kafka:connect-transforms:3.9.1'
27+
testImplementation 'org.apache.kafka:kafka_2.13:3.9.1'
2528
// Use JUnit Jupiter for testing.
26-
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
29+
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.0'
30+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.14.0'
2731
}
2832
java {
2933
sourceCompatibility = '11'

src/main/java/com/michelin/kafka/connect/transforms/TimestampMicrosConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public void configure(final Map<String, ?> pConfigs) {
279279

280280
if (!VALID_TYPES.contains(type)) {
281281
throw new ConfigException("Unknown timestamp type in TimestampConverter: " + type + ". Valid values are "
282-
+ Utils.join(VALID_TYPES, ", ") + ".");
282+
+ String.join(", ", VALID_TYPES) + ".");
283283
}
284284
if (type.equals(TYPE_STRING) && formatPattern.trim().isEmpty()) {
285285
throw new ConfigException("TimestampConverter requires format option to be specified when using string timestamps");

0 commit comments

Comments
 (0)