@@ -71,7 +71,9 @@ extraJavaModuleInfo {
7171 module("commons-beanutils:commons-beanutils", "org.apache.commons.beanutils") {
7272 exports("org.apache.commons.beanutils")
7373 // or granuarly allowing access to a package by specific modules
74- // exports("org.apache.commons.beanutils", "org.mycompany.server", "org.mycompany.client")
74+ // exports("org.apache.commons.beanutils",
75+ // "org.mycompany.server", "org.mycompany.client")
76+ // or simply export all packages
7577 // exportAllPackages()
7678
7779 requiresTransitive("org.apache.commons.logging")
@@ -81,7 +83,8 @@ extraJavaModuleInfo {
8183 // closeModule()
8284 // opens("org.apache.commons.beanutils")
8385 // or granuarly allowing runtime-only access to a package by specific modules
84- // opens("org.apache.commons.beanutils", "org.mycompany.server", "org.mycompany.client")
86+ // opens("org.apache.commons.beanutils",
87+ // "org.mycompany.server", "org.mycompany.client")
8588
8689 // requiresTransitive(...)
8790 // requiresStatic(...)
@@ -93,6 +96,12 @@ extraJavaModuleInfo {
9396 }
9497 module("commons-collections:commons-collections", "org.apache.commons.collections")
9598 automaticModule("commons-logging:commons-logging", "org.apache.commons.logging")
99+
100+ // when the Jar has a classifier - 'linux-x86_64' in this example:
101+ module("io.netty:netty-transport-native-epoll|linux-x86_64",
102+ "io.netty.transport.epoll.linux.x86_64")
103+ // when you somehow cannot address a Jar via coordinates, you may use the Jar name:
104+ module("commons-logging-1.2.jar", "org.apache.commons.loggin")
96105}
97106```
98107
0 commit comments