From 31ff93f81d7dc8666d808d19bafce671f1797834 Mon Sep 17 00:00:00 2001 From: Markku Korkeala Date: Tue, 28 Jul 2020 18:32:32 +0300 Subject: [PATCH] Force Java 8 as sun.reflect.Reflection is removed in Java 11. --- jdeparser.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jdeparser.spec b/jdeparser.spec index 854b3fa..655ad26 100644 --- a/jdeparser.spec +++ b/jdeparser.spec @@ -3,7 +3,7 @@ Name: jdeparser Version: 2.0.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Source generator library for Java License: ASL 2.0 URL: https://github.com/jdeparser/jdeparser2 @@ -11,6 +11,7 @@ URL: https://github.com/jdeparser/jdeparser2 Source0: %{url}/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz BuildArch: noarch +BuildRequires: java-1.8.0-openjdk-devel BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.jboss:jboss-parent:pom:) @@ -31,6 +32,8 @@ This package contains the API documentation for %{name}. %setup -q -n jdeparser2-%{namedversion} %build +# Use Java 8 as sun.reflect.Reflection is removed in Java 11. +export JAVA_HOME=%{_jvmdir}/java-1.8.0 %mvn_build %install @@ -43,6 +46,9 @@ This package contains the API documentation for %{name}. %license LICENSE.txt %changelog +* Tue Jul 28 2020 Markku Korkeala - 2.0.3-5 +- Force Java 8 as sun.reflect.Reflection is removed in Java 11. + * Tue Jul 28 2020 Fedora Release Engineering - 2.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild