Skip to content

Commit

Permalink
Merge pull request #45 from dmlloyd/mi
Browse files Browse the repository at this point in the history
Provide a `module-info` file
  • Loading branch information
dmlloyd committed Apr 22, 2022
2 parents 1441c4e + ff68bb6 commit ec5b63e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@
<properties>
<!-- Dependency versions -->
<version.ch.qos.logback>1.2.8</version.ch.qos.logback>
<version.module-info>1.2</version.module-info>
<version.org.apache.log4j>1.2.17</version.org.apache.log4j>
<version.org.apache.logging.log4j>2.17.1</version.org.apache.logging.log4j>
<version.org.jboss.logmanager>2.1.18.Final</version.org.jboss.logmanager>
<version.org.junit>5.8.2</version.org.junit>
<version.org.sfl4j>1.7.32</version.org.sfl4j>
<version.surefire.plugin>3.0.0-M5</version.surefire.plugin>

<!-- Override the parent version to compile with Java 17 -->
<version.bundle.plugin>5.1.3</version.bundle.plugin>
Expand Down Expand Up @@ -156,6 +158,7 @@
<!-- Required so we can test the various providers -->
<reuseForks>false</reuseForks>
<skip>true</skip>
<useModulePath>false</useModulePath>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -320,6 +323,20 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.dmlloyd.module-info</groupId>
<artifactId>module-info</artifactId>
<version>${version.module-info}</version>
<executions>
<execution>
<id>module-info</id>
<phase>process-classes</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
14 changes: 14 additions & 0 deletions src/main/java/module-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: org.jboss.logging

requires:
- module: org.jboss.logmanager
static: true
- module: org.slf4j
static: true
- module: log4j.api # log4j 1, theoretically
static: true
- module: org.apache.logging.log4j
static: true

uses:
- org.jboss.logging.LoggerProvider

0 comments on commit ec5b63e

Please sign in to comment.