Switch Java compiler source/target to 1.8

Resolves: RHEL-52692
This commit is contained in:
Marian Koncek 2024-02-20 08:27:55 +01:00 committed by Mikolaj Izdebski
parent 600eca1f7c
commit e8ea3aede2

View File

@ -18,7 +18,7 @@ Source4: generate-tarball.sh
Patch0: 0001-Adapt-build.patch
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
BuildRequires: javapackages-bootstrap
%else
BuildRequires: javapackages-local
BuildRequires: ant
@ -48,7 +48,7 @@ This package contains javadoc for %{name}.
%prep
%setup -q -n jdom-JDOM-%{version}
%patch0 -p1
%patch 0 -p1
sed -i 's/\r//' LICENSE.txt
@ -61,7 +61,7 @@ sed -i '/import org.jdom2.xpath.XPathFactory/d' core/src/java/org/jdom2/JDOMCons
%build
mkdir lib
%ant -Dversion=%{version} -Dcompile.source=1.7 -Dcompile.target=1.7 -Dj2se.apidoc=%{_javadocdir}/java maven
%ant -Dversion=%{version} -Dcompile.source=1.8 -Dcompile.target=1.8 -Dj2se.apidoc=%{_javadocdir}/java maven
# Make jar into an OSGi bundle
# XXX disabled until BND is fixed
@ -81,6 +81,10 @@ mkdir lib
%license LICENSE.txt
%changelog
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6.1-7
- Switch Java compiler source/target to 1.8
- Resolves: RHEL-52692
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 2.0.6.1-7
- Bump release for Aug 2024 java mass rebuild