dependencies { api libs.net testImplementation libs.jackson.databind } def patchArgs = ['--patch-module', "org.xbib.content.resource.test=" + sourceSets.test.resources.sourceDirectories.singleFile] tasks.named('compileTestJava') { options.compilerArgs += patchArgs } tasks.named('test') { jvmArgs += patchArgs }