Java Version
The javaVersion property in the platform block controls the Java toolchain version used for compilation across all modules in your project.
Default
Kreate defaults to JavaVersion.VERSION_25 if javaVersion is not explicitly set.
Configuration
kreate {
platform {
javaVersion = JavaVersion.VERSION_17
}
}
Behavior
When javaVersion is configured, Kreate applies the following automatically:
Sets the Java toolchain for Kotlin and Java compilation tasks
Aligns the source and target compatibility across all submodules
Ensures Gradle's toolchain resolver fetches the correct JDK if not already installed
Supported Versions
Any JavaVersion enum value from Gradle's API is accepted. Kreate is tested against the following:
Value | Java Release |
|---|---|
| Java 17 (Minimum) |
| Java 21 (LTS) |
| Java 25 (default) |
06 May 2026