]> source.dussan.org Git - pf4j.git/commitdiff
Add static for asm dependency #405 426/head
authorDecebal Suiu <decebal.suiu@gmail.com>
Tue, 23 Feb 2021 11:47:33 +0000 (13:47 +0200)
committerDecebal Suiu <decebal.suiu@gmail.com>
Tue, 23 Feb 2021 11:47:33 +0000 (13:47 +0200)
pf4j/src/main/java/module-info.java

index b11792fb28627f809c5da0f155b7ad66788e3444..55b616919363da54f075cabe503aea3ef8ae71fc 100644 (file)
@@ -26,8 +26,8 @@ module org.pf4j {
     // provides javax.annotation
     requires java.compiler;
 
-    // provided by the ASM library
-    requires org.objectweb.asm;
+    // provided by the ASM library, use "requires static" since it's optional
+    requires static org.objectweb.asm;
 
     // The SLF4J library currently does not provide a module.
     // Version 1.8 provides a module called "org.slf4j". But this version is