Java Development Guide - dogtagpki/pki GitHub Wiki

Java Dependency

Java dependency is defined in pki.spec:

%define java_devel java-17-openjdk-devel
%define java_headless java-17-openjdk-headless
%define java_home %{_jvmdir}/jre-17-openjdk

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>

See Also

⚠️ **GitHub.com Fallback** ⚠️