- baseName = project.name + "-all"
- manifest {
- attributes(
- "Main-Class": "net.pterodactylus.rhynodge.engine.Starter"
- )
- }
- from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
- from { sourceSets.generated.resources.srcDirs }
- with jar
- dependsOn test
+ baseName = project.name + "-all"
+ manifest {
+ attributes(
+ "Main-Class": "net.pterodactylus.rhynodge.engine.Starter"
+ )
+ }
+ from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+ from { sourceSets.generated.resources.srcDirs }
+ with jar
+ dependsOn test
+}
+
+tasks.named('test') {
+ jvmArgs += "--add-opens=java.base/java.lang=ALL-UNNAMED"
+ jvmArgs += "--add-opens=java.base/java.util=ALL-UNNAMED"