From 03130ed9dc28ed82509191fd588d1f6314d84a484ed5398edc07624765c6b734 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 22 Nov 2019 16:45:04 +0000 Subject: [PATCH] Accepting request 750344 from Java:packages OBS-URL: https://build.opensuse.org/request/show/750344 OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-plugin-tools?expand=0&rev=16 --- maven-plugin-plugin.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/maven-plugin-plugin.spec b/maven-plugin-plugin.spec index 61ff6a6..c4baf5a 100644 --- a/maven-plugin-plugin.spec +++ b/maven-plugin-plugin.spec @@ -133,7 +133,11 @@ API documentation for %{name}. %build pushd %{name} %{mvn_file} :%{name} %{base_name}/%{name} -%{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 %install