From 6a56c417e6a3d97b16ecf75b5a102c2f546701c5a6a9d9eb7aac099f7385ea0d Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 22 Mar 2022 13:32:51 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-osgi?expand=0&rev=8 --- maven-osgi.changes | 5 +++++ maven-osgi.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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