From 0ff0059cb03c6eb9aed596d069d002e0ada2a6b2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 29 Jul 2020 23:56:42 +0200 Subject: [PATCH] override javac source / target versions with 1.8 to fix build with Java 11 --- jakarta-activation.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jakarta-activation.spec b/jakarta-activation.spec index a8ef9dd..74ce94e 100644 --- a/jakarta-activation.spec +++ b/jakarta-activation.spec @@ -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 - 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 - 1.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild