Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Make build pass on JDK11 #610

Merged
merged 3 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kafka-1-0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
<relocations>
<relocation>
<pattern>org.apache.kafka.common</pattern>
<shadedPattern>org.apache.kafka-1-0-0.common</shadedPattern>
<shadedPattern>org.apache.kafka100.common</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.kafka.clients</pattern>
<shadedPattern>org.apache.kafka-1-0-0.clients</shadedPattern>
<shadedPattern>org.apache.kafka100.clients</shadedPattern>
</relocation>
</relocations>
</configuration>
Expand All @@ -70,4 +70,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
public enum KafkaVersion {

DEFAULT("default"), KAFKA_1_0_0("1-0-0");
DEFAULT("default"), KAFKA_1_0_0("100");

@Getter
private String name;
Expand All @@ -37,13 +37,13 @@ public String getStringSerializer() {
if (this.equals(DEFAULT)) {
return "org.apache.kafka.common.serialization.StringSerializer";
}
return String.format("org.apache.kafka-%s.common.serialization.StringSerializer", name);
return String.format("org.apache.kafka%s.common.serialization.StringSerializer", name);
}

public String getStringDeserializer() {
if (this.equals(DEFAULT)) {
return "org.apache.kafka.common.serialization.StringDeserializer";
}
return String.format("org.apache.kafka-%s.common.serialization.StringDeserializer", name);
return String.format("org.apache.kafka%s.common.serialization.StringDeserializer", name);
}
}