Skip to content

Commit

Permalink
Add module-info
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed May 7, 2024
1 parent 5ebf5b0 commit fb10e81
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
18 changes: 17 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<dependency>
<groupId>io.smallrye.common</groupId>
<artifactId>smallrye-common-bom</artifactId>
<version>2.4.0</version>
<version>2.5.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -203,8 +203,24 @@
<jboss.threads.eqe.unlimited-queue>${jboss.threads.eqe.unlimited-queue}</jboss.threads.eqe.unlimited-queue>
<jboss.threads.eqe.register-mbean>${jboss.threads.eqe.register-mbean}</jboss.threads.eqe.register-mbean>
</systemPropertyVariables>
<forkMode>always</forkMode>
<useModulePath>true</useModulePath>
</configuration>
</plugin>
<plugin>
<groupId>io.github.dmlloyd.module-info</groupId>
<artifactId>module-info</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>module-info</id>
<phase>process-classes</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
10 changes: 10 additions & 0 deletions src/main/java/module-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: org.jboss.threads

requires:
- module: jdk.unsupported
- module: org.jboss.logging
- module: org.wildfly.common
- module: io.smallrye.common.annotation
- module: io.smallrye.common.constraint
- module: io.smallrye.common.cpu
- module: io.smallrye.common.function
6 changes: 4 additions & 2 deletions src/main/java/org/jboss/threads/Messages.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.jboss.threads;

import static java.lang.invoke.MethodHandles.*;

import java.time.Duration;

import org.jboss.logging.BasicLogger;
Expand All @@ -14,8 +16,8 @@
*/
@MessageLogger(projectCode = "JBTHR", length = 5)
interface Messages extends BasicLogger {
Messages msg = Logger.getMessageLogger(Messages.class, "org.jboss.threads");
Messages intMsg = Logger.getMessageLogger(Messages.class, "org.jboss.threads.interrupt-handler");
Messages msg = Logger.getMessageLogger(lookup(), Messages.class, "org.jboss.threads");
Messages intMsg = Logger.getMessageLogger(lookup(), Messages.class, "org.jboss.threads.interrupt-handler");

// version
@Message(value = "JBoss Threads version %s")
Expand Down

0 comments on commit fb10e81

Please sign in to comment.