override javac source / target versions with 1.8 to fix build with Java 11

This commit is contained in:
Fabio Valentini 2020-07-29 23:56:42 +02:00
parent e17c3f9a55
commit 0ff0059cb0
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF
1 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Name: jakarta-activation
Version: 1.2.1
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Jakarta Activation Specification and Implementation
License: BSD
@ -56,9 +56,12 @@ This package contains javadoc for %{name}.
# (the plugin is only used to strip off -SNAPSHOT or -Mx qualifiers)
sed -i "s/\${activation.osgiversion}/%{version}/g" activation/pom.xml
# remove maven-compiler-plugin configurations that are broken with Java 11
%pom_remove_plugin -r :maven-compiler-plugin
%build
%mvn_build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
@ -74,6 +77,9 @@ sed -i "s/\${activation.osgiversion}/%{version}/g" activation/pom.xml
%changelog
* Wed Jul 29 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2.1-7
- Override javac source / target versions with 1.8 to fix build with Java 11.
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild