-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-12895: Drop support for Scala 2.12 in Kafka 4.0 #17313
Changes from 1 commit
b17213c
e647469
da027d3
a69ee77
ed878a0
8981d7e
7cdd73e
ab266bc
a7ebc6c
62d858b
70554d6
ee86696
3223429
4b64566
7052d2e
89053ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,7 @@ the broker and tools has been deprecated since Apache Kafka 3.7 and removal of b | |
see [KIP-750](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=181308223) and | ||
[KIP-1013](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=284789510) for more details). | ||
|
||
Scala 2.12 and 2.13 are supported and 2.13 is used by default. Scala 2.12 support has been deprecated since | ||
Apache Kafka 3.0 and will be removed in Apache Kafka 4.0 (see [KIP-751](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=181308218) | ||
Scala 2.13 is used by default. Scala 2.12 support has been removed in Apache Kafka 4.0 (see [KIP-751](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=181308218) | ||
for more details). See below for how to use a specific Scala version or all of the supported Scala versions. | ||
|
||
### Build a jar and run it ### | ||
|
@@ -114,14 +113,14 @@ Using compiled files: | |
### Cleaning the build ### | ||
./gradlew clean | ||
|
||
### Running a task with one of the Scala versions available (2.12.x or 2.13.x) ### | ||
### Running a task with Scala 2.13.x ### | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should just delete this section and all the other sections related to multiple Scala versions, etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’ve kept the section related to ./gradlewAll since we haven’t removed it yet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would remove that too. We can simply add a comment to |
||
*Note that if building the jars with a version other than 2.13.x, you need to set the `SCALA_VERSION` variable or change it in `bin/kafka-run-class.sh` to run the quick start.* | ||
|
||
You can pass either the major version (eg 2.12) or the full version (eg 2.12.7): | ||
You can pass either the major version (eg 2.13) or the full version (eg 2.13.14): | ||
|
||
./gradlew -PscalaVersion=2.12 jar | ||
./gradlew -PscalaVersion=2.12 test | ||
./gradlew -PscalaVersion=2.12 releaseTarGz | ||
./gradlew -PscalaVersion=2.13 jar | ||
./gradlew -PscalaVersion=2.13 test | ||
./gradlew -PscalaVersion=2.13 releaseTarGz | ||
|
||
### Running a task with all the scala versions enabled by default ### | ||
|
||
|
@@ -203,7 +202,7 @@ Please note for this to work you should create/update user maven settings (typic | |
|
||
|
||
### Installing ALL the jars to the local Maven repository ### | ||
The recommended command to build for both Scala 2.12 and 2.13 is: | ||
The recommended command to build for Scala 2.13 is: | ||
|
||
./gradlewAll publishToMavenLocal | ||
|
||
|
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.
I think we should simply say that Scala 2.13 is the only version we support. The readme is not a changelog. We have a separate file for the changelog.