From 12b46c834aba311f1b6f89923fb79b7f462e2eb826a2a2fafad3241831e2eec3 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 23 Mar 2022 19:05:39 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/signpost-core?expand=0&rev=8 --- signpost-core.changes | 5 +++++ signpost-core.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/signpost-core.changes b/signpost-core.changes index 48f0955..a7d268f 100644 --- a/signpost-core.changes +++ b/signpost-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 23 19:05:18 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + ------------------------------------------------------------------- Thu Nov 21 18:30:42 UTC 2019 - Fridrich Strba diff --git a/signpost-core.spec b/signpost-core.spec index 5b87195..e9a6efc 100644 --- a/signpost-core.spec +++ b/signpost-core.spec @@ -1,7 +1,7 @@ # # spec file for package signpost-core # -# 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 @@ -26,6 +26,7 @@ URL: https://github.com/mttkay/signpost Source0: https://github.com/mttkay/signpost/archive/%{githash}/signpost-%{githash}.tar.gz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: mvn(commons-codec:commons-codec) BuildRequires: mvn(org.apache.httpcomponents:httpclient) @@ -79,10 +80,11 @@ sed -i 's/\r//' LICENSE %{mvn_file} :signpost-commonshttp4 signpost-commonshttp4 %build -%{mvn_build} -s -f \ +%{mvn_build} -s -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