qos-ch / reload4j

reload4j is a drop-in replacement for log4j 1.2.17
Apache License 2.0
148 stars 22 forks source link

Added automatic module name #58

Closed robtimus closed 1 year ago

robtimus commented 1 year ago

The current version of reload4j does not define any module name. That prevents adding it as a proper dependency in module descriptor. If you do, using the automatic module name based on the JAR file name (reload4j), the following warning is shown:

[WARNING] *******************************************************************************************************************************************
[WARNING] * Required filename-based automodules detected: [reload4j-1.2.22.jar]. Please don't publish this project to a public artifact repository! *
[WARNING] *******************************************************************************************************************************************

This PR sets an explicit automatic module name. Since all of reload4j's own dependencies are a) optional and b) have versions with proper module names, this allows module descriptors to use the new automatic module name (ch.qos.reload4j) without any warnings or other issues.