Update Java compiler target settings

Related: RHEL-74277
This commit is contained in:
Mikolaj Izdebski 2025-01-16 15:52:35 +01:00
parent 8a44789148
commit 5a45bfebaf

View File

@ -2,7 +2,7 @@
Name: maven-bundle-plugin
Version: 5.1.9
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Maven Bundle Plugin
License: Apache-2.0
URL: https://felix.apache.org
@ -31,10 +31,6 @@ BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
%endif
# TODO remove Provides / Obsoletes on maven-plugin-bundle in Fedora 41
Provides: maven-plugin-bundle = %{version}-%{release}
Obsoletes: maven-plugin-bundle < 5.1.1-9
%description
Provides a maven plugin that supports creating an OSGi bundle
from the contents of the compilation classpath along with its
@ -51,7 +47,7 @@ Obsoletes: maven-plugin-bundle-javadoc < 5.1.1-9
API documentation for %{name}.
%prep
%setup -q
%autosetup -p1
find -name '*.jar' -delete
@ -74,7 +70,7 @@ rm -f src/main/java/org/apache/felix/bundleplugin/baseline/BaselineReport.java
%build
# Tests depend on bundled JARs
# source and target set explicitly for xmvn-javadoc-plugin
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%mvn_build -f -- -Dmaven.compiler.target=8
%install
%mvn_install
@ -86,6 +82,9 @@ rm -f src/main/java/org/apache/felix/bundleplugin/baseline/BaselineReport.java
%license LICENSE NOTICE
%changelog
* Thu Jan 16 2025 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.1.9-8
- Update Java compiler target settings
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5.1.9-7
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018