Exclude a few things from the java.base.jmod dependency

This commit is contained in:
Username404-59 2021-04-27 02:49:54 +02:00
parent 23633a3eeb
commit 5365db200a
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -53,7 +53,7 @@ subprojects {
dontwarn("java.**")
val homeDir = System.getProperty("java.home") as String
if (JavaVersion.current().isJava9Compatible()) {
libraryjars("$homeDir/jmods/java.base.jmod")
libraryjars("$homeDir/jmods/java.base.jmod(!.jar;!module-info.class)")
} else libraryjars("$homeDir/lib/rt.jar")
// Note: dontpreverify() should NOT be used, it will cause errors at runtime
useuniqueclassmembernames()