Update to depend on Java 11

This commit is contained in:
Chris Kelley 2023-03-10 15:47:28 +00:00 committed by Stepan Oksanichenko
parent 3ac90bdd75
commit e9257f9e02
2 changed files with 8 additions and 6 deletions

1
.jdeparser.metadata Normal file
View File

@ -0,0 +1 @@
67a4608c75355338b3ba55594411077b8529ebea jdeparser-2.0.3.Final.tar.gz

View File

@ -3,16 +3,16 @@
Name: jdeparser
Version: 2.0.3
Release: 12%{?dist}
Release: 13%{?dist}
Summary: Source generator library for Java
License: ASL 2.0
URL: https://github.com/jdeparser/jdeparser2
# old repos https://github.com/jdeparser/jdeparser
Source0: %{url}/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
Patch: 0001-Fix-build-error-depending-on-class-removed-in-Java-1.patch
Patch1: 0001-Fix-build-error-depending-on-class-removed-in-Java-1.patch
BuildArch: noarch
BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: java-11-openjdk-devel
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
@ -31,11 +31,9 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n jdeparser2-%{namedversion}
%patch -p1
%patch1 -p1
%build
# Use Java 8 as sun.reflect.Reflection is removed in Java 11.
export JAVA_HOME=%{_jvmdir}/java-1.8.0
%mvn_build
%install
@ -48,6 +46,9 @@ export JAVA_HOME=%{_jvmdir}/java-1.8.0
%license LICENSE.txt
%changelog
* Fri Mar 10 2023 Red Hat PKI Team <rhcs-maint@redhat.com> 2.0.3-13
- Bug 2176827 - [RHEL9][FTBFS]: jdeparser-2.0.3-12.el9
* Tue Aug 17 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 2.0.3-9
- Bug 1981014 - jdeparser: FTBFS due to access to internal class sun.reflect.Reflection