From 01632a6f930fd0ebfa01fff33c03e2cc1add4497eff6e0a8a0c08efbc75fb58c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 22 Nov 2019 16:17:16 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/mojo-executor?expand=0&rev=4 --- mojo-executor.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mojo-executor.spec b/mojo-executor.spec index 1472cb0..e8cf17c 100644 --- a/mojo-executor.spec +++ b/mojo-executor.spec @@ -57,7 +57,10 @@ perl -pi -e 's#org\.sonatype\.aether\.repository#org.eclipse.aether.repository#g mojo-executor/src/main/java/org/twdata/maven/mojoexecutor/MavenCompatibilityHelper.java %build -%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 %install %mvn_install