Fridrich Strba 2019-11-22 16:12:14 +00:00 committed by Git OBS Bridge
parent 84fe686a79
commit 7c037e1f04
3 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#
# spec file for package maven
# spec file for package maven-surefire-plugins
#
# 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
@ -168,7 +168,11 @@ for i in \
maven-surefire-plugin \
maven-surefire-report-plugin; do
pushd ${i}
%mvn_build -f -- -Dmaven.compiler.release=6
%mvn_build -f \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-- -Dmaven.compiler.release=6
%endif
popd
%mvn_artifact ${i}/pom.xml ${i}/target/${i}-%{version}.jar
if [ -d ${i}/target/site/apidocs ]; then

View File

@ -1,7 +1,7 @@
#
# spec file for package maven
# spec file for package maven-surefire-provider-junit5
#
# 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

View File

@ -1,7 +1,7 @@
#
# spec file for package maven-surefire
#
# 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