Set compiler source/target levels to 1.6

This commit is contained in:
Mikolaj Izdebski 2019-10-28 15:01:21 +01:00
parent a3a0b7bedb
commit dbc594be8e

View File

@ -37,6 +37,9 @@ Requires: %{name} = %{version}-%{release}
%setup -q %setup -q
%patch0 %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 # Make into OSGi bundle
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "<extensions>true</extensions>" %pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "<extensions>true</extensions>"