KAFKA-18203 Add a section for Java version in intellij idea in README (#18134)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Ken Huang 2024-12-14 01:37:25 +08:00 committed by GitHub
parent 669d8610a2
commit 6af233e4fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,8 @@ Streams has multiple sub-projects, but you can run all the tests:
./gradlew tasks
### Building IDE project ####
*Note Please ensure that JDK17 is used when developing Kafka.*
*Note that this is not strictly necessary (IntelliJ IDEA has good built-in support for Gradle projects, for example).*
./gradlew eclipse
@ -130,6 +132,11 @@ The `eclipse` task has been configured to use `${project_dir}/build_eclipse` as
build directory (`${project_dir}/bin`) clashes with Kafka's scripts directory and we don't use Gradle's build directory
to avoid known issues with this configuration.
IntelliJ Language Level awareness:
IntelliJ will automatically check Java syntax and compatibility for each module, even if the Java version is not
explicitly set in the Structure > Project Settings > Modules.
### Publishing the streams quickstart archetype artifact to maven ###
For the Streams archetype project, one cannot use gradle to upload to maven; instead the `mvn deploy` command needs to be called at the quickstart folder: