Switch Java compiler source/target to 1.8

Resolves: RHEL-52695
This commit is contained in:
Marian Koncek 2024-02-24 08:46:00 +01:00 committed by Mikolaj Izdebski
parent 1d7f35a7c5
commit 3e75e77dcd

View File

@ -38,8 +38,8 @@ Requires: %{name} = %{version}-%{release}
%setup -q %setup -q
%patch 0 %patch 0
%pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" 1.7 %pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" 1.8
%pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" 1.7 %pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" 1.8
# Make into OSGi bundle # Make into OSGi bundle
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
@ -67,6 +67,10 @@ cp -pr example/* %{buildroot}%{_datadir}/%{name}
%doc %{_datadir}/%{name} %doc %{_datadir}/%{name}
%changelog %changelog
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.3-29
- Switch Java compiler source/target to 1.8
- Resolves: RHEL-52695
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 1.1.3-29 * Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 1.1.3-29
- Bump release for Aug 2024 java mass rebuild - Bump release for Aug 2024 java mass rebuild