diff --git a/maven-surefire-provider-junit5.spec b/maven-surefire-provider-junit5.spec index df71d56..abf602a 100644 --- a/maven-surefire-provider-junit5.spec +++ b/maven-surefire-provider-junit5.spec @@ -105,7 +105,11 @@ sed -i /-Xdoclint:all/d pom.xml %build pushd surefire-providers/surefire-junit-platform -%mvn_build -f +%mvn_build -f \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -- -Dmaven.compiler.release=8 +%endif + popd %install