Skip to content

Commit

Permalink
Use Java 17 on RHEL 9
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Aug 27, 2024
1 parent cf27359 commit 8ab0108
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pki.spec
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ ExcludeArch: i686
# Java
################################################################################

%if 0%{?rhel} && 0%{?rhel} <= 9

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

%else

# Use Java 21 on Fedora 40+ and RHEL 10, otherwise use Java 17.
%global java_devel java-devel >= 1:17
%global java_headless java-headless >= 1:17
Expand All @@ -75,6 +83,8 @@ ExcludeArch: i686
set_jvm;
echo $JAVA_HOME)

%endif

################################################################################
# Application Server
################################################################################
Expand Down

0 comments on commit 8ab0108

Please sign in to comment.