From dbc594be8eca3f0218fdb6c031caefed4abc31a9 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 28 Oct 2019 15:01:21 +0100 Subject: [PATCH] Set compiler source/target levels to 1.6 --- jzlib.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jzlib.spec b/jzlib.spec index e27fc5e..9b5bd1b 100644 --- a/jzlib.spec +++ b/jzlib.spec @@ -37,6 +37,9 @@ Requires: %{name} = %{version}-%{release} %setup -q %patch0 +%pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" 1.6 +%pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" 1.6 + # Make into OSGi bundle %pom_xpath_inject "pom:project" "bundle" %pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "true"