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 24, 2024
1 parent 39193f8 commit 9954c18
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
21 changes: 13 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

<jdk.min.version>11</jdk.min.version>

<version.jboss.logging.tools>3.0.0.Final</version.jboss.logging.tools>
<version.jboss.logging.tools>3.0.1.Final</version.jboss.logging.tools>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -100,12 +100,6 @@
<version>${version.jboss.logging.tools}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-processor</artifactId>
<version>${version.jboss.logging.tools}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
Expand Down Expand Up @@ -189,7 +183,17 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<proc>full</proc>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-processor</artifactId>
<version>${version.jboss.logging.tools}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
<compilerArgs>
<!-- This is for SVM dependency -->
<compilerArg>--add-reads=org.jboss.threads=ALL-UNNAMED</compilerArg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
Expand All @@ -205,6 +209,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 9954c18

Please sign in to comment.