Skip to content

Commit

Permalink
Add module-info
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Jul 5, 2024
1 parent 39193f8 commit 1e7dff1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
<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>
<useModulePath>true</useModulePath>
</configuration>
</plugin>
</plugins>
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module org.jboss.threads {
requires java.management;
requires jdk.unsupported;
requires org.jboss.logging;
requires static org.jboss.logging.annotations;
requires org.wildfly.common;
requires io.smallrye.common.annotation;
requires io.smallrye.common.constraint;
requires io.smallrye.common.cpu;
requires io.smallrye.common.function;

exports org.jboss.threads;
exports org.jboss.threads.management;
}
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 1e7dff1

Please sign in to comment.