Skip to content

Java 9 Module name wrong for slf4j 2.x #1983

Closed
@aschepp

Description

@aschepp

Description

The module log4j-to-slf4j currently uses the following module-info.class:

module org.apache.logging.log4j.to.slf4j {
    requires java.base;
    requires org.apache.logging.log4j;
    requires slf4j-api;

    exports org.apache.logging.slf4j;

    provides org.apache.logging.log4j.spi.Provider with
        org.apache.logging.slf4j.SLF4JProvider;
}

This only works with slf4j 1.x, because the module name has changed with version 2.x of slf4j, it's now "org.slf4j".

https://github.com/qos-ch/slf4j/blob/master/slf4j-api/src/main/java9/module-info.java

Configuration

Version: 2.22.0

Operating system: Linux/Mac

JDK: Java 17

Logs

java.lang.module.FindException: Module slf4j-api not found, required by org.apache.logging.log4j.to.slf4j'.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions