Skip to content

Java Development Guide

Endi S. Dewata edited this page Dec 1, 2022 · 7 revisions

Configuring Java Source and Target Versions in CMake

Java source and target versions are hard-coded in cmake/Modules/Java.cmake:

COMMAND ${Java_JAVAC_EXECUTABLE}
    ...
    -source 17
    -target 17
    ...

Configuring Java Release Version in Maven

Java release version is hard-coded in pom.xml:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.8.1</version>
    <configuration>
        <release>17</release>
     </configuration>
</plugin>
Clone this wiki locally