Switch Java compiler source/target to 1.8

Resolves: RHEL-52687
This commit is contained in:
Marian Koncek 2024-02-20 10:02:44 +01:00 committed by Mikolaj Izdebski
parent 1206b7f4b7
commit 1c2b9c9270

View File

@ -39,7 +39,7 @@ Documentation for the cglib code generation library.
%prep
%setup -q -n %{name}-%{tarball_name}
%patch0 -p1
%patch 0 -p1
# remove unnecessary dependency on parent POM
%pom_remove_parent
@ -70,7 +70,7 @@ Documentation for the cglib code generation library.
%build
# 5 tests fail with OpenJDK 11
# Forwarded upstream: https://github.com/cglib/cglib/issues/119
%mvn_build -f -- -Djava.version.source=1.7 -Djava.version.target=1.7
%mvn_build -f -- -Djava.version.source=1.8 -Djava.version.target=1.8
%install
%mvn_install
@ -82,6 +82,10 @@ Documentation for the cglib code generation library.
%license LICENSE NOTICE
%changelog
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-15
- Switch Java compiler source/target to 1.8
- Resolves: RHEL-52687
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 3.3.0-15
- Bump release for Aug 2024 java mass rebuild