dependencies { api project(':logging') api libs.log4j.core testImplementation project(':logging-ext') } def moduleName = 'org.xbib.logging.log4j.test' def patchArgs = ['--patch-module', "$moduleName=" + files(sourceSets.test.resources.srcDirs).asPath ] tasks.named('compileTestJava') { options.compilerArgs += patchArgs } tasks.named('test') { jvmArgs += patchArgs }