Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions log4j-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
<bnd-multi-release>true</bnd-multi-release>
<!-- Differs from OSGi bundle name -->
<bnd-module-name>org.apache.logging.log4j</bnd-module-name>
<bnd-extra-package-options>
<!-- This is a Java 9 only package, so BND can not detect it as private -->
!org.apache.logging.log4j.util.internal
</bnd-extra-package-options>
<bnd-extra-module-options>
<!-- Used in StringBuilders through reflection -->
java.sql;static=true,
Expand Down
1 change: 0 additions & 1 deletion log4j-core-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
org.hamcrest;transitive=false,
org.junit.jupiter.api;transitive=false,
<!-- Name changes -->
org.assertj.core;substitute="assertj-core",
java.allocation.instrumenter;substitute="java-allocation-instrumenter",
spring.test;substitute="spring-test"
</bnd-extra-module-options>
Expand Down
8 changes: 4 additions & 4 deletions log4j-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@
<!-- Remove `transitive` from optional dependencies -->
com.fasterxml.jackson.annotation;transitive=false,
com.lmax.disruptor;transitive=false,
com.fasterxml.jackson.core;substitute="jackson-core";transitive=false,
com.fasterxml.jackson.databind;substitute="jackson-databind";transitive=false,
com.fasterxml.jackson.dataformat.xml;substitute="jackson-dataformat-xml";transitive=false,
com.fasterxml.jackson.dataformat.yaml;substitute="jackson-dataformat-yaml";transitive=false,
com.fasterxml.jackson.core;transitive=false,
com.fasterxml.jackson.databind;transitive=false,
com.fasterxml.jackson.dataformat.xml;transitive=false,
com.fasterxml.jackson.dataformat.yaml;transitive=false,
java.naming;transitive=false,
org.apache.commons.csv;transitive=false,
org.fusesource.jansi;transitive=false,
Expand Down
5 changes: 0 additions & 5 deletions log4j-docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
<!--
~ OSGi and JPMS options
-->
<bnd-extra-module-options>
<!-- Non detected module names -->
com.fasterxml.jackson.core;substitute="jackson-core",
com.fasterxml.jackson.databind;substitute="jackson-databind"
</bnd-extra-module-options>
<Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
</properties>
<dependencies>
Expand Down
7 changes: 1 addition & 6 deletions log4j-jcl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@
<packaging>jar</packaging>
<name>Apache Log4j Commons Logging Bridge</name>
<description>The Apache Log4j Commons Logging Adapter</description>
<properties>
<bnd-extra-module-options>
<!-- Filebase module names: MUST be static -->
commons.logging;substitute="commons-logging";transitive=false;static=true
</bnd-extra-module-options>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down
4 changes: 0 additions & 4 deletions log4j-jdbc-dbcp2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
~ OSGi and JPMS options
-->
<bnd-module-name>org.apache.logging.log4j.core.appender.db.jdbc</bnd-module-name>
<bnd-extra-module-options>
<!-- Module names -->
org.apache.commons.dbcp2;substitute="commons-dbcp2"
</bnd-extra-module-options>
<Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
</properties>

Expand Down
5 changes: 0 additions & 5 deletions log4j-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
<!--
~ OSGi and JPMS options
-->
<bnd-extra-module-options>
<!-- Non detected module names -->
com.fasterxml.jackson.core;substitute="jackson-core",
com.fasterxml.jackson.databind;substitute="jackson-databind"
</bnd-extra-module-options>
<Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
</properties>

Expand Down
10 changes: 0 additions & 10 deletions log4j-slf4j2-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,7 @@
<packaging>jar</packaging>
<name>Apache Log4j SLF4J 2.0 Binding</name>
<description>The Apache Log4j SLF4J 2.0 API binding to Log4j 2 Core</description>
<properties>

<!--
~ OSGi and JPMS options
-->
<bnd-extra-module-options>
<!-- The module descriptor is in `META-INF/versions/9`
BND can not find it -->
org.slf4j;substitute="slf4j-api"
</bnd-extra-module-options>
</properties>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
Expand Down
5 changes: 0 additions & 5 deletions log4j-to-slf4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
<!-- This bridge also support SLF4J 2.x -->
org.slf4j.*;version="${slf4j.support.range}"
</bnd-extra-package-options>
<bnd-extra-module-options>
<!-- The module descriptor is in `META-INF/versions/9`
BND 6.x can not find it -->
org.slf4j;substitute="slf4j-api"
</bnd-extra-module-options>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion log4j-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
-->
<bnd-extra-module-options>
<!-- Filebased module names: MUST be static -->
javax.servlet.api;substitute="javax.servlet-api";transitive=true;static=true
javax.servlet.api;substitute="javax.servlet-api";transitive=false;static=true
</bnd-extra-module-options>
<Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
</properties>
Expand Down
25 changes: 25 additions & 0 deletions src/changelog/.2.x.x/simplify_configuration_after_bnd_7_update.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to you under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://logging.apache.org/log4j/changelog"
xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.3.xsd"
type="changed">
<description format="asciidoc">
Simplify BND configuration after upgrade from version `6.4.1` to `7.0.0`
</description>
</entry>