Supported Java build tools
Several Klocwork commands can integrate with your Java build, capturing all of the information it needs to provide a centralized view of the entire code stream. You must use Java 7 or later, and you must use a javac from the Java Development Kit (JDK). The supported Java build tools and versions are as follows:
For Gradle projects, Java runtime requirements vary by Gradle version. For details, see the Gradle support table after the main tool table.
| Klocwork Command | Java Build Tool | Supported Version |
|---|---|---|
| kwant | ant | 1.8.2 to 1.10.17 |
| kwmaven | mvn | 3.0 to 3.9.16 |
| kwgradle | gradle |
3.x to 9.7.1 |
| kwgradlew | gradlew |
3.x to 9.7.1 |
The supported Gradle and JDK combinations for kwgradle and kwgradlew are as follows:
| Gradle version | Minimum JDK | Notes |
|---|---|---|
|
3.x - 6.x |
Java 8+ |
Baseline version support |
|
7.x - 8.x |
Java 8+ |
Java 11+ recommended for Gradle 8 |
|
9.x |
Java 17+ |
Required due to Gradle 9 runtime requirements |