You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd be great if the library supplied a full Java module descriptor. It's possible to keep bytecode baseline compatible with Java 8 while providing a full module descriptor thanks to ModiTect. This will help modular projects that consume this library, specifically those that create custom Java Runtimes with jlink, as the latter does not support automatic modules but explicit modules.
ModiTect requires Java 9 to be used for running the build. Reload4j currently targets Java 5 bytecode. I think it might not be possible to use the plugin directly. The alternative would be to have an additional source set containing moudle-info.java compiled with Java 9+, then merge all classes into a single JAR. module-info.class should be placed in the versioned space (META-INF/versions/x) and a Multi-Release: true attributed added to the JAR's manifest.
If this feature is added then slf4j-reload4j would also need to be made fully modular (can't open a ticket at jira.qos.ch to file it at this moment).
The text was updated successfully, but these errors were encountered:
I'm not the maintainer, but imho supporting modules fully is not worth the effort for this library.
It is intended as a drop-in replacement for log4j 1 so projects who can't upgrade to newer versions of log4j or migrate to other logging frameworks get at least security updates.
Those projects probably don't care so much about modules.
In your project cdevents/sdk-java you are already using slf4j everywhere so it would be trivial to migrate to a newer logging library.
You'd only need to replace the log4j.properties with the config file of the logging framework of your choice and replace the dependency in the pom.xml.
That being said, this is just my personal opinion. Feel free to correct me if I missed something 😄
v1.2.25
defines an automatic module nameI'd be great if the library supplied a full Java module descriptor. It's possible to keep bytecode baseline compatible with Java 8 while providing a full module descriptor thanks to ModiTect. This will help modular projects that consume this library, specifically those that create custom Java Runtimes with
jlink
, as the latter does not support automatic modules but explicit modules.ModiTect requires Java 9 to be used for running the build. Reload4j currently targets Java 5 bytecode. I think it might not be possible to use the plugin directly. The alternative would be to have an additional source set containing
moudle-info.java
compiled with Java 9+, then merge all classes into a single JAR.module-info.class
should be placed in the versioned space (META-INF/versions/x
) and aMulti-Release: true
attributed added to the JAR's manifest.If this feature is added then
slf4j-reload4j
would also need to be made fully modular (can't open a ticket at jira.qos.ch to file it at this moment).The text was updated successfully, but these errors were encountered: