Fix compatibility with Java 8
This commit is contained in:
parent
94122e7546
commit
25c16745c4
@ -2,7 +2,7 @@
|
||||
|
||||
Name: log4j
|
||||
Version: 2.17.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Java logging package
|
||||
BuildArch: noarch
|
||||
License: ASL 2.0
|
||||
@ -206,6 +206,9 @@ rm -r log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka
|
||||
%pom_remove_dep -r :slf4j-ext
|
||||
%pom_remove_parent
|
||||
|
||||
# Make compiled code compatible with OpenJDK 8
|
||||
%pom_xpath_inject 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration' "<release>8</release>"
|
||||
|
||||
%if %{with jp_minimal}
|
||||
%pom_disable_module %{name}-taglib
|
||||
%pom_disable_module %{name}-jmx-gui
|
||||
@ -289,6 +292,9 @@ rm -r log4j-1.2-api/src/main/java/org/apache/log4j/or/jms
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Apr 26 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.17.2-2
|
||||
- Fix compatibility with Java 8
|
||||
|
||||
* Sun Feb 27 2022 Paul Wouters <paul.wouters@aiven.io> - 2.17.2-1
|
||||
- Resolves: rhbz#2058949 log4j-2.17.2 is available (1.2 bridge bugfixes)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user