-
Notifications
You must be signed in to change notification settings - Fork 136
Conversation
Thanks for your contribution. It makes sense to me. But I have a concern that some version number may have two digits like Kafka 0.10.0.0. If we supported these versions in future, what's the best way to name the package? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, this change could affect the tests. See https://github.com/streamnative/kop/blob/master/kafka-client-api/src/main/java/io/streamnative/kafka/client/api/KafkaVersion.java
The public String getStringSerializer() {
/* ... */
return String.format("org.apache.kafka-%s.common.serialization.StringSerializer", name);
} should be modified to public String getStringSerializer() {
/* ... */
return String.format("org.apache.kafka%s.common.serialization.StringSerializer", name);
} It also applies to |
Hi @eolivelli , could you apply my comments to fix the broken tests? |
sure @BewareMyPower |
thank you ! |
This patch allows you to build KOP on JDK11. Without this patch the build fails with this error: ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project kafka-client-factory: Compilation failure: Compilation failure: [ERROR] /Users/enrico.olivelli/dev/kop/kafka-client-factory/src/main/java/io/streamnative/kafka/client/api/KafkaClientFactoryImpl.java:[33,20] cannot access org.apache.kafka-1-0-0.clients.producer.KafkaProducer [ERROR] class file for org.apache.kafka-1-0-0.clients.producer.KafkaProducer not found [ERROR] /Users/enrico.olivelli/dev/kop/kafka-client-factory/src/main/java/io/streamnative/kafka/client/api/KafkaClientFactoryImpl.java:[41,20] cannot access org.apache.kafka-1-0-0.clients.consumer.KafkaConsumer [ERROR] class file for org.apache.kafka-1-0-0.clients.consumer.KafkaConsumer not found [ERROR] -> [Help 1] [ERROR] ``` **Modifications** do not use '-' in the package name As I do not have signed an ICLA with this repo, I would like to state explicitly that I am sending this patch according to the terms Apache License v2.
This patch allows you to build KOP on JDK11. Without this patch the build fails with this error: ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project kafka-client-factory: Compilation failure: Compilation failure: [ERROR] /Users/enrico.olivelli/dev/kop/kafka-client-factory/src/main/java/io/streamnative/kafka/client/api/KafkaClientFactoryImpl.java:[33,20] cannot access org.apache.kafka-1-0-0.clients.producer.KafkaProducer [ERROR] class file for org.apache.kafka-1-0-0.clients.producer.KafkaProducer not found [ERROR] /Users/enrico.olivelli/dev/kop/kafka-client-factory/src/main/java/io/streamnative/kafka/client/api/KafkaClientFactoryImpl.java:[41,20] cannot access org.apache.kafka-1-0-0.clients.consumer.KafkaConsumer [ERROR] class file for org.apache.kafka-1-0-0.clients.consumer.KafkaConsumer not found [ERROR] -> [Help 1] [ERROR] ``` **Modifications** do not use '-' in the package name As I do not have signed an ICLA with this repo, I would like to state explicitly that I am sending this patch according to the terms Apache License v2.
This patch allows you to build KOP on JDK11.
Without this patch the build fails with this error:
Modifications
do not use '-' in the package name
As I do not have signed an ICLA with this repo, I would like to state explicitly that I am sending this patch according to the terms Apache License v2.