Switch Java compiler source/target to 1.8

Resolves: RHEL-52696
This commit is contained in:
Marian Koncek 2024-02-20 10:13:02 +01:00 committed by Mikolaj Izdebski
parent 0f6e10d986
commit 75bdff6eb3

View File

@ -48,9 +48,9 @@ This package provides %{summary}.
%prep
%setup -q
find -name '*.java' -exec sed -i 's/\r//' {} +
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch 0 -p1
%patch 1 -p1
%patch 2 -p1
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-shade-plugin
@ -61,7 +61,7 @@ find -name '*.java' -exec sed -i 's/\r//' {} +
find -name Maven30\*.java -delete
%build
%mvn_build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
%mvn_install
@ -73,6 +73,10 @@ find -name Maven30\*.java -delete
%license LICENSE NOTICE
%changelog
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.13.1-14
- Switch Java compiler source/target to 1.8
- Resolves: RHEL-52696
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 1:0.13.1-14
- Bump release for Aug 2024 java mass rebuild