From eaa6a2bce67f9390bba6039ee5a6be4dda160f00 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 13 Nov 2019 12:06:38 +0100 Subject: [PATCH] explicitly specify maven compiler source and target versions --- plexus-build-api.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plexus-build-api.spec b/plexus-build-api.spec index c655d73..2b0e687 100644 --- a/plexus-build-api.spec +++ b/plexus-build-api.spec @@ -1,6 +1,6 @@ Name: plexus-build-api Version: 0.0.7 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Plexus Build API License: ASL 2.0 URL: https://github.com/sonatype/sisu-build-api @@ -40,8 +40,10 @@ cp -p %{SOURCE1} . %mvn_file : plexus/%{name} +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" + %build -%mvn_build +%mvn_build -- -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6 %install %mvn_install @@ -53,6 +55,9 @@ cp -p %{SOURCE1} . %doc LICENSE-2.0.txt %changelog +* Wed Nov 13 2019 Fabio Valentini - 0.0.7-25 +- Explicitly specify maven compiler source and target versions. + * Thu Oct 17 2019 Fabio Valentini - 0.0.7-24 - Port to plexus-utils 3.3.0.