From 7ea61a374aa43e214bba4c8de4b65a916e27d365ebfe8e3a96fc8c5ad03e2ef4 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 23 Mar 2022 10:15:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/prometheus-simpleclient-java?expand=0&rev=8 --- prometheus-simpleclient-java.changes | 5 +++++ prometheus-simpleclient-java.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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