diff --git a/maven-osgi.changes b/maven-osgi.changes index 105e8ac..1026177 100644 --- a/maven-osgi.changes +++ b/maven-osgi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 22 13:32:28 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + ------------------------------------------------------------------- Sun Nov 24 17:06:36 UTC 2019 - Fridrich Strba diff --git a/maven-osgi.spec b/maven-osgi.spec index c40d36a..7394a65 100644 --- a/maven-osgi.spec +++ b/maven-osgi.spec @@ -1,7 +1,7 @@ # # spec file for package maven-osgi # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -61,10 +61,11 @@ sed -i 's/import aQute\.lib\.osgi/import aQute.bnd.osgi/g' src/main/java/org/apa %pom_xpath_set "pom:artifactId[text()='plexus-maven-plugin']" plexus-component-metadata %build -%{mvn_build} -f \ +%{mvn_build} -f -- \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} - -- -Dmaven.compiler.release=6 + -Dmaven.compiler.release=8 \ %endif + -Dsource=8 %install %mvn_install