Switch Java compiler source/target to 1.8

Resolves: RHEL-52704
This commit is contained in:
Marian Koncek 2024-02-24 08:51:21 +01:00 committed by Mikolaj Izdebski
parent 63782c3e51
commit 6965e1fed7

View File

@ -35,7 +35,7 @@ Javadoc for %{name}.
%prep
%setup -q -n jakarta-%{name}-%{version}
%patch0
%patch 0
cp -p %{SOURCE2} MANIFEST.MF
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
@ -55,7 +55,7 @@ EOF
%build
mkdir lib
%ant -Djakarta-site2.dir=. -Dant.build.javac.source=1.7 -Dant.build.javac.target=1.7 jar javadocs
%ant -Djakarta-site2.dir=. -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 jar javadocs
%mvn_artifact pom.xml build/*.jar
@ -72,6 +72,10 @@ mkdir lib
%doc LICENSE
%changelog
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-47
- Switch Java compiler source/target to 1.8
- Resolves: RHEL-52704
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 1:1.5-47
- Bump release for Aug 2024 java mass rebuild