diff --git a/prometheus-simpleclient-java.changes b/prometheus-simpleclient-java.changes index 0293ae4..fed2c13 100644 --- a/prometheus-simpleclient-java.changes +++ b/prometheus-simpleclient-java.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 23 10:00:34 UTC 2022 - Fridrich Strba + +- Build with source and target levels 8 + ------------------------------------------------------------------- Thu Mar 17 12:56:51 UTC 2022 - Fridrich Strba diff --git a/prometheus-simpleclient-java.spec b/prometheus-simpleclient-java.spec index 3b3edd1..bdab748 100644 --- a/prometheus-simpleclient-java.spec +++ b/prometheus-simpleclient-java.spec @@ -153,8 +153,12 @@ done %pom_add_dep javax.xml.bind:jaxb-api::provided simpleclient_pushgateway %endif +%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "1.8" +%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8" + %build -%{mvn_build} -f -s -- -Dsource=8 +%{mvn_build} -f -s -- \ + -Dsource=8 %install %mvn_install