Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BND configuration for log4j-core #1821

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Sep 26, 2023

This PR performs the necessary changes to switch log4j-core from maven-bundle-plugin to bnd-maven-plugin and generate a matching module descriptor.

Imported packages

These imports become optional:

  • javax.annotation.processing,
  • javax.lang.model.*,
  • javax.naming,
  • javax.sql,
  • javax.tools.

These imports are removed:

  • org.apache.logging.log4j.core.appender,
  • org.apache.logging.log4j.core.config,
  • org.apache.logging.log4j.core.filter,
  • org.apache.logging.log4j.core.layout,
  • org.apache.logging.log4j.core.layout.internal,
  • org.apache.logging.log4j.core.tools.picocli,
  • org.apache.logging.log4j.core.util.internal,
  • sun.reflect.

Exported packages

These two packages are not exported any more:

  • org.apache.logging.log4j.core.layout.internal,
  • org.apache.logging.log4j.core.message.

These new packages are exported:

  • org.apache.logging.log4j.core.pattern,
  • org.apache.logging.log4j.core.script,
  • org.apache.logging.log4j.core.selector,
  • org.apache.logging.log4j.core.time,
  • org.apache.logging.log4j.core.tools,
  • org.apache.logging.log4j.core.util,
  • org.apache.logging.log4j.core.util.datetime.

Module descriptor

A new JPMS module descriptor is generated:

module [email protected] {
 requires static com.fasterxml.jackson.annotation;
 requires static com.lmax.disruptor;
 requires static disruptor;
 requires static jackson-core;
 requires static jackson-databind;
 requires static jackson-dataformat-xml;
 requires static jackson-dataformat-yaml;
 requires static java.activation;
 requires transitive java.base;
 requires static java.compiler;
 requires java.desktop;
 requires static java.logging;
 requires transitive java.management;
 requires static java.naming;
 requires java.rmi;
 requires transitive java.scripting;
 requires static java.sql;
 requires transitive java.xml;
 requires static javax.jms-api;
 requires static javax.mail-api;
 requires static jctools-core;
 requires static jeromq;
 requires static kafka-clients;
 requires static org.apache.commons.compress;
 requires static org.apache.commons.csv;
 requires transitive org.apache.logging.log4j;
 requires static org.codehaus.stax2;
 requires static org.fusesource.jansi;
 requires static org.osgi.core;
 exports org.apache.logging.log4j.core;
 exports org.apache.logging.log4j.core.appender;
 exports org.apache.logging.log4j.core.appender.db;
 exports org.apache.logging.log4j.core.appender.db.jdbc;
 exports org.apache.logging.log4j.core.appender.mom;
 exports org.apache.logging.log4j.core.appender.mom.jeromq;
 exports org.apache.logging.log4j.core.appender.mom.kafka;
 exports org.apache.logging.log4j.core.appender.nosql;
 exports org.apache.logging.log4j.core.appender.rewrite;
 exports org.apache.logging.log4j.core.appender.rolling;
 exports org.apache.logging.log4j.core.appender.rolling.action;
 exports org.apache.logging.log4j.core.appender.routing;
 exports org.apache.logging.log4j.core.async;
 exports org.apache.logging.log4j.core.config;
 exports org.apache.logging.log4j.core.config.arbiters;
 exports org.apache.logging.log4j.core.config.builder.api;
 exports org.apache.logging.log4j.core.config.builder.impl;
 exports org.apache.logging.log4j.core.config.composite;
 exports org.apache.logging.log4j.core.config.json;
 exports org.apache.logging.log4j.core.config.plugins;
 exports org.apache.logging.log4j.core.config.plugins.convert;
 exports org.apache.logging.log4j.core.config.plugins.processor;
 exports org.apache.logging.log4j.core.config.plugins.util;
 exports org.apache.logging.log4j.core.config.plugins.validation;
 exports org.apache.logging.log4j.core.config.plugins.validation.constraints;
 exports org.apache.logging.log4j.core.config.plugins.validation.validators;
 exports org.apache.logging.log4j.core.config.plugins.visitors;
 exports org.apache.logging.log4j.core.config.properties;
 exports org.apache.logging.log4j.core.config.status;
 exports org.apache.logging.log4j.core.config.xml;
 exports org.apache.logging.log4j.core.config.yaml;
 exports org.apache.logging.log4j.core.filter;
 exports org.apache.logging.log4j.core.filter.mutable;
 exports org.apache.logging.log4j.core.impl;
 exports org.apache.logging.log4j.core.jackson;
 exports org.apache.logging.log4j.core.jmx;
 exports org.apache.logging.log4j.core.layout;
 exports org.apache.logging.log4j.core.lookup;
 exports org.apache.logging.log4j.core.net;
 exports org.apache.logging.log4j.core.net.ssl;
 exports org.apache.logging.log4j.core.osgi;
 exports org.apache.logging.log4j.core.parser;
 exports org.apache.logging.log4j.core.pattern;
 exports org.apache.logging.log4j.core.script;
 exports org.apache.logging.log4j.core.selector;
 exports org.apache.logging.log4j.core.time;
 exports org.apache.logging.log4j.core.tools;
 exports org.apache.logging.log4j.core.util;
 exports org.apache.logging.log4j.core.util.datetime;
 uses org.apache.logging.log4j.core.util.ContextDataProvider;
 uses org.apache.logging.log4j.core.util.WatchEventService;
 provides  javax.annotation.processing.Processor with
   org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor;
 provides  org.apache.logging.log4j.core.util.ContextDataProvider with
   org.apache.logging.log4j.core.impl.ThreadContextDataProvider;
 provides  org.apache.logging.log4j.message.ThreadDumpMessage$ThreadInfoFactory with
   org.apache.logging.log4j.core.message.ExtendedThreadInfoFactory;
 provides  org.apache.logging.log4j.spi.Provider with
   org.apache.logging.log4j.core.impl.Log4jProvider;
}

@ppkarwasz ppkarwasz mentioned this pull request Sep 26, 2023
29 tasks
@ppkarwasz
Copy link
Contributor Author

ppkarwasz commented Sep 26, 2023

For completeness' sake, this is the entire OSGi manifest:

[MANIFEST]

Bundle-ActivationPolicy                 lazy
Bundle-Activator                        org.apache.logging.log4j.core.osgi.Activator
Bundle-Description                      The Apache Log4j Implementation
Bundle-License                          "Apache-2.0";link="https://www.apache.org/licenses/LICENSE-2.0.txt"
Bundle-ManifestVersion                  2
Bundle-Name                             Apache Log4j Core
Bundle-SymbolicName                     org.apache.logging.log4j.core
Bundle-Vendor                           The Apache Software Foundation
Bundle-Version                          2.21.0.SNAPSHOT
Export-Package                          org.apache.logging.log4j.core.appender.db.jdbc;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender.db,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.config.plugins.validation.constraints,org.apache.logging.log4j.core.layout,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.db;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.mom.jeromq;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.config.plugins.validation.constraints,org.zeromq";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.mom.kafka;uses:="org.apache.kafka.clients.producer,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.mom;uses:="javax.jms,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.net,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.nosql;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.appender.db,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.rewrite;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.rolling.action;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.config.plugins.validation.constraints,org.apache.logging.log4j.core.lookup,org.apache.logging.log4j.core.script,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.rolling;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.appender.rolling.action,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.lookup,org.apache.logging.log4j.core.pattern,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender.routing;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.appender.rewrite,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.script,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.appender;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender.rolling,org.apache.logging.log4j.core.async,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.config.plugins.validation.constraints,org.apache.logging.log4j.core.filter,org.apache.logging.log4j.core.impl,org.apache.logging.log4j.core.layout,org.apache.logging.log4j.core.lookup,org.apache.logging.log4j.core.net,org.apache.logging.log4j.core.net.ssl,org.apache.logging.log4j.core.script,org.apache.logging.log4j.core.util,org.apache.logging.log4j.status";version="2.21.0"
                                        org.apache.logging.log4j.core.async;uses:="com.conversantmedia.util.concurrent,com.lmax.disruptor,org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.config.plugins.validation.constraints,org.apache.logging.log4j.core.impl,org.apache.logging.log4j.core.jmx,org.apache.logging.log4j.core.selector,org.apache.logging.log4j.core.time,org.apache.logging.log4j.core.util,org.apache.logging.log4j.message,org.apache.logging.log4j.util";version="2.21.0"
                                        org.apache.logging.log4j.core.config.arbiters;uses:="org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.config.builder.api;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.builder.impl,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.config.builder.impl;uses:="javax.xml.transform,org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.builder.api,org.apache.logging.log4j.core.config.plugins.util,org.apache.logging.log4j.core.config.status";version="2.21.0"
                                        org.apache.logging.log4j.core.config.composite;uses:="org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins.util";version="2.21.0"
                                        org.apache.logging.log4j.core.config.json;uses:="com.fasterxml.jackson.databind,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins";version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins.convert;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core.appender.rolling.action,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins.processor;uses:="javax.annotation.processing,javax.lang.model,javax.lang.model.element";version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins.util;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins.processor,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins.validation.constraints;uses:="org.apache.logging.log4j.core.config.plugins.validation,org.apache.logging.log4j.core.config.plugins.validation.validators";version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins.validation.validators;uses:="org.apache.logging.log4j.core.config.plugins.validation,org.apache.logging.log4j.core.config.plugins.validation.constraints";version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins.validation;version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins.visitors;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.lookup";version="2.21.0"
                                        org.apache.logging.log4j.core.config.plugins;uses:="org.apache.logging.log4j.core.config.plugins.visitors";version="2.21.0"
                                        org.apache.logging.log4j.core.config.properties;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.builder.api,org.apache.logging.log4j.core.config.builder.impl,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.config.status;uses:="org.apache.logging.log4j";version="2.21.0"
                                        org.apache.logging.log4j.core.config.xml;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins";version="2.21.0"
                                        org.apache.logging.log4j.core.config.yaml;uses:="com.fasterxml.jackson.databind,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.json,org.apache.logging.log4j.core.config.plugins";version="2.21.0"
                                        org.apache.logging.log4j.core.config;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.async,org.apache.logging.log4j.core.config.builder.api,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.config.plugins.util,org.apache.logging.log4j.core.config.plugins.validation.constraints,org.apache.logging.log4j.core.filter,org.apache.logging.log4j.core.impl,org.apache.logging.log4j.core.lookup,org.apache.logging.log4j.core.net,org.apache.logging.log4j.core.script,org.apache.logging.log4j.core.util,org.apache.logging.log4j.message,org.apache.logging.log4j.util";version="2.21.0"
                                        org.apache.logging.log4j.core.filter.mutable;version="2.21.0"
                                        org.apache.logging.log4j.core.filter;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.script,org.apache.logging.log4j.core.util,org.apache.logging.log4j.message,org.apache.logging.log4j.util";version="2.21.0"
                                        org.apache.logging.log4j.core.impl;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.pattern,org.apache.logging.log4j.core.selector,org.apache.logging.log4j.core.time,org.apache.logging.log4j.core.util,org.apache.logging.log4j.message,org.apache.logging.log4j.spi,org.apache.logging.log4j.util";version="2.21.0"
                                        org.apache.logging.log4j.core.jackson;uses:="com.fasterxml.jackson.core,com.fasterxml.jackson.databind,com.fasterxml.jackson.databind.deser.std,com.fasterxml.jackson.databind.ser.std,com.fasterxml.jackson.dataformat.xml,com.fasterxml.jackson.dataformat.yaml,org.apache.logging.log4j.message,org.apache.logging.log4j.util";version="2.21.0"
                                        org.apache.logging.log4j.core.jmx;uses:="com.lmax.disruptor,javax.management,org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.selector,org.apache.logging.log4j.status";version="2.21.0"
                                        org.apache.logging.log4j.core.layout;uses:="com.fasterxml.jackson.annotation,com.fasterxml.jackson.core,com.fasterxml.jackson.databind,com.fasterxml.jackson.dataformat.xml.annotation,org.apache.commons.csv,org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.impl,org.apache.logging.log4j.core.net,org.apache.logging.log4j.core.pattern,org.apache.logging.log4j.core.script,org.apache.logging.log4j.core.util,org.apache.logging.log4j.message";version="2.21.0"
                                        org.apache.logging.log4j.core.lookup;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins";version="2.21.0"
                                        org.apache.logging.log4j.core.net.ssl;uses:="javax.net.ssl,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.status";version="2.21.0"
                                        org.apache.logging.log4j.core.net;uses:="javax.mail,javax.mail.internet,javax.naming,org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.appender,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.layout,org.apache.logging.log4j.core.net.ssl,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.osgi;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.core.selector,org.apache.logging.log4j.util,org.osgi.framework";version="2.21.0"
                                        org.apache.logging.log4j.core.parser;uses:="org.apache.logging.log4j.core";version="2.21.0"
                                        org.apache.logging.log4j.core.pattern;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.impl,org.apache.logging.log4j.core.time,org.apache.logging.log4j.message,org.fusesource.jansi";version="2.21.0"
                                        org.apache.logging.log4j.core.script;uses:="javax.script,org.apache.logging.log4j,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.core.util";version="2.21.0"
                                        org.apache.logging.log4j.core.selector;uses:="org.apache.logging.log4j.core,org.apache.logging.log4j.spi,org.apache.logging.log4j.status";version="2.21.0"
                                        org.apache.logging.log4j.core.time;uses:="org.apache.logging.log4j.core.util,org.apache.logging.log4j.util";version="2.21.0"
                                        org.apache.logging.log4j.core.tools;version="2.21.0"
                                        org.apache.logging.log4j.core.util.datetime;uses:="org.apache.logging.log4j.core.time";version="2.21.0"
                                        org.apache.logging.log4j.core.util;uses:="javax.crypto,javax.naming,org.apache.logging.log4j,org.apache.logging.log4j.core,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.config.plugins,org.apache.logging.log4j.util";version="2.21.0"
                                        org.apache.logging.log4j.core;uses:="org.apache.logging.log4j,org.apache.logging.log4j.core.config,org.apache.logging.log4j.core.impl,org.apache.logging.log4j.core.layout,org.apache.logging.log4j.core.time,org.apache.logging.log4j.message,org.apache.logging.log4j.spi,org.apache.logging.log4j.status,org.apache.logging.log4j.util";version="2.21.0"
Import-Package                          com.conversantmedia.util.concurrent;resolution:=optional
                                        com.fasterxml.jackson.annotation;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.core.type;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.core.util;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.core;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind.annotation;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind.deser.std;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind.module;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind.node;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind.ser.impl;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind.ser.std;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind.ser;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.databind;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.dataformat.xml.annotation;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.dataformat.xml.util;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.dataformat.xml;resolution:=optional;version="[2.15,3)"
                                        com.fasterxml.jackson.dataformat.yaml;resolution:=optional;version="[2.15,3)"
                                        com.lmax.disruptor.dsl;resolution:=optional;version="[3.4,4)"
                                        com.lmax.disruptor;resolution:=optional;version="[3.4,4)"
                                        javax.activation;resolution:=optional;version="[1.2,2)"
                                        javax.annotation.processing;resolution:=optional
                                        javax.crypto
                                        javax.jms;version="[1.1,3)";resolution:=optional
                                        javax.lang.model.element;resolution:=optional
                                        javax.lang.model.util;resolution:=optional
                                        javax.lang.model;resolution:=optional
                                        javax.mail.internet;version="[1.6,2)";resolution:=optional
                                        javax.mail.util;version="[1.6,2)";resolution:=optional
                                        javax.mail;version="[1.6,2)";resolution:=optional
                                        javax.management
                                        javax.naming;resolution:=optional
                                        javax.net
                                        javax.net.ssl
                                        javax.script
                                        javax.sql;resolution:=optional
                                        javax.tools;resolution:=optional
                                        javax.xml.parsers
                                        javax.xml.stream
                                        javax.xml.transform
                                        javax.xml.transform.stream
                                        javax.xml.validation
                                        org.apache.commons.compress.compressors;resolution:=optional;version="[1.23,2)"
                                        org.apache.commons.compress.utils;resolution:=optional;version="[1.23,2)"
                                        org.apache.commons.csv;resolution:=optional;version="[1.10,2)"
                                        org.apache.kafka.clients.producer;resolution:=optional
                                        org.apache.kafka.common.serialization;resolution:=optional
                                        org.apache.logging.log4j.core
                                        org.apache.logging.log4j.core.appender.db
                                        org.apache.logging.log4j.core.appender.rewrite
                                        org.apache.logging.log4j.core.appender.rolling
                                        org.apache.logging.log4j.core.appender.rolling.action
                                        org.apache.logging.log4j.core.async
                                        org.apache.logging.log4j.core.config.arbiters
                                        org.apache.logging.log4j.core.config.builder.api
                                        org.apache.logging.log4j.core.config.builder.impl
                                        org.apache.logging.log4j.core.config.composite
                                        org.apache.logging.log4j.core.config.json
                                        org.apache.logging.log4j.core.config.plugins
                                        org.apache.logging.log4j.core.config.plugins.convert
                                        org.apache.logging.log4j.core.config.plugins.processor
                                        org.apache.logging.log4j.core.config.plugins.util
                                        org.apache.logging.log4j.core.config.plugins.validation
                                        org.apache.logging.log4j.core.config.plugins.validation.constraints
                                        org.apache.logging.log4j.core.config.plugins.validation.validators
                                        org.apache.logging.log4j.core.config.plugins.visitors
                                        org.apache.logging.log4j.core.config.properties
                                        org.apache.logging.log4j.core.config.status
                                        org.apache.logging.log4j.core.filter.mutable
                                        org.apache.logging.log4j.core.impl
                                        org.apache.logging.log4j.core.jackson
                                        org.apache.logging.log4j.core.jmx
                                        org.apache.logging.log4j.core.lookup
                                        org.apache.logging.log4j.core.net
                                        org.apache.logging.log4j.core.net.ssl
                                        org.apache.logging.log4j.core.pattern
                                        org.apache.logging.log4j.core.script
                                        org.apache.logging.log4j.core.selector
                                        org.apache.logging.log4j.core.time
                                        org.apache.logging.log4j.core.util
                                        org.apache.logging.log4j.core.util.datetime
                                        org.apache.logging.log4j.message;version="[2.21,3)"
                                        org.apache.logging.log4j.spi;version="[2.21,3)"
                                        org.apache.logging.log4j.status;version="[2.21,3)"
                                        org.apache.logging.log4j.util;version="[2.21,3)"
                                        org.apache.logging.log4j;version="[2.21,3)"
                                        org.codehaus.stax2;resolution:=optional;version="[4.2,5)"
                                        org.fusesource.jansi;resolution:=optional;version="[2.4,3)"
                                        org.jctools.queues;resolution:=optional;version="[4.0,5)"
                                        org.osgi.framework.wiring;version="[1.2,2)"
                                        org.osgi.framework;version="[1.8,2)"
                                        org.w3c.dom
                                        org.xml.sax
                                        org.zeromq;resolution:=optional;version="[0.5,1)"
Manifest-Version                        1.0
Multi-Release                           true
Private-Package                         org.apache.logging.log4j.core.layout.internal
                                        org.apache.logging.log4j.core.message
                                        org.apache.logging.log4j.core.time.internal
                                        org.apache.logging.log4j.core.tools.picocli
                                        org.apache.logging.log4j.core.util.internal
Provide-Capability                      osgi.service;objectClass:List<String>="javax.annotation.processing.Processor";effective:=active
                                        osgi.service;objectClass:List<String>="org.apache.logging.log4j.core.util.ContextDataProvider";effective:=active
                                        osgi.service;objectClass:List<String>="org.apache.logging.log4j.message.ThreadDumpMessage$ThreadInfoFactory";effective:=active
                                        osgi.service;objectClass:List<String>="org.apache.logging.log4j.spi.Provider";effective:=active
                                        osgi.serviceloader;osgi.serviceloader="javax.annotation.processing.Processor";register:="org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor"
                                        osgi.serviceloader;osgi.serviceloader="org.apache.logging.log4j.core.util.ContextDataProvider";register:="org.apache.logging.log4j.core.impl.ThreadContextDataProvider"
                                        osgi.serviceloader;osgi.serviceloader="org.apache.logging.log4j.message.ThreadDumpMessage$ThreadInfoFactory";register:="org.apache.logging.log4j.core.message.ExtendedThreadInfoFactory"
                                        osgi.serviceloader;osgi.serviceloader="org.apache.logging.log4j.spi.Provider";register:="org.apache.logging.log4j.core.impl.Log4jProvider"
Require-Capability                      osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
                                        osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional
                                        osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional
                                        osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.logging.log4j.core.util.ContextDataProvider)";osgi.serviceloader="org.apache.logging.log4j.core.util.ContextDataProvider";cardinality:=multiple;resolution:=optional
                                        osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.logging.log4j.core.util.WatchEventService)";osgi.serviceloader="org.apache.logging.log4j.core.util.WatchEventService";cardinality:=multiple;resolution:=optional

The following packages are no longer exported:

 *  org.apache.logging.log4j.core.layout.internal
 *  org.apache.logging.log4j.core.message
 *  org.apache.logging.log4j.core.time.internal
 *  org.apache.logging.log4j.core.tools.picocli
 *  org.apache.logging.log4j.core.util.internal

A new JPMS module is generated, which sets the following Java modules as
optional:
 *  java.compiler,
 *  java.logging,
 *  java.naming,
 *  java.sql.
@ppkarwasz ppkarwasz merged commit e304e78 into apache:bnd Oct 2, 2023
5 checks passed
@ppkarwasz ppkarwasz deleted the bnd-core branch October 2, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants