Accepting request 962715 from Java:packages

Build against standalone jaxb-api

OBS-URL: https://build.opensuse.org/request/show/962715
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/prometheus-simpleclient-java?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2022-03-18 15:42:50 +00:00 committed by Git OBS Bridge
commit 45f9b21d24
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 17 12:56:51 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build against standalone jaxb-api on distributions that have JDK
without the JavaEE modules
-------------------------------------------------------------------
Tue Feb 22 18:22:41 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -38,6 +38,9 @@ BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%if 0%{?suse_version} > 1500
BuildRequires: mvn(javax.xml.bind:jaxb-api)
%endif
%description
The Prometheus Java Suite: Client Metrics, Exposition, and Examples.
@ -146,6 +149,10 @@ for m in simpleclient_caffeine \
%pom_disable_module $m
done
%if 0%{?suse_version} > 1500
%pom_add_dep javax.xml.bind:jaxb-api::provided simpleclient_pushgateway
%endif
%build
%{mvn_build} -f -s -- -Dsource=8