m1a2st commented on code in PR #15958:
URL: https://github.com/apache/kafka/pull/15958#discussion_r1668739308
##########
build.gradle:
##########
@@ -651,7 +651,7 @@ subprojects {
scalaCompileOptions.keepAliveMode = userKeepAliveMode
scalaCompileOptions.additionalParameters = [
- "-deprecation",
+ "-deprecation:false",
Review Comment:
In new scala version, it will check the deprecated method, and make the
compile error like below
```
[2024-05-15T01:51:49.255Z] > Task :core:compileScala
[2024-05-15T01:51:49.255Z] [Error]
/home/jenkins/workspace/Kafka_kafka-pr_PR-15958/core/src/main/scala/kafka/controller/KafkaController.scala:1202:18:
method setOrCreatePartitionReassignment in class KafkaZkClient is deprecated
[2024-05-15T01:51:50.590Z] [Error]
/home/jenkins/workspace/Kafka_kafka-pr_PR-15958/core/src/main/scala/kafka/zk/ZkData.scala:518:14:
class LegacyPartitionAssignment in object ReassignPartitionsZNode is deprecated
[2024-05-15T01:51:50.590Z] [Error]
/home/jenkins/workspace/Kafka_kafka-pr_PR-15958/core/src/main/scala/kafka/zk/ZkData.scala:524:24:
class LegacyPartitionAssignment in object ReassignPartitionsZNode is deprecated
[2024-05-15T01:51:50.590Z] [Error]
/home/jenkins/workspace/Kafka_kafka-pr_PR-15958/core/src/main/scala/kafka/zk/ZkData.scala:533:23:
class LegacyPartitionAssignment in object ReassignPartitionsZNode is deprecated
[2024-05-15T01:51:50.590Z] [Error]
/home/jenkins/workspace/Kafka_kafka-pr_PR-15958/core/src/main/scala/kafka/zk/ZkData.scala:533:49:
class LegacyPartitionAssignment in object ReassignPartitionsZNode is deprecated
```
To resolve this, I found the way is to add `"-deprecation:false"`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]