Accepting request 750524 from Java:packages

fix build with new maven-javadoc-plugin

OBS-URL: https://build.opensuse.org/request/show/750524
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/signpost-core?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-11-26 15:56:10 +00:00 committed by Git OBS Bridge
commit a77c0345fb
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 21 18:30:42 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Specify maven.compiler.release to fix build with jdk9+ and newer
maven-javadoc-plugin
-------------------------------------------------------------------
Wed Nov 13 05:42:12 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package signpost-core
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -79,7 +79,10 @@ sed -i 's/\r//' LICENSE
%{mvn_file} :signpost-commonshttp4 signpost-commonshttp4
%build
%{mvn_build} -s -f -- -Dsource=6
%{mvn_build} -s -f \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-- -Dmaven.compiler.release=6
%endif
%install
%mvn_install