dependencies { api project(':net-http-client') api libs.netty.codec.http2 api libs.netty.handler.proxy } def moduleName = 'org.xbib.net.http.client.netty.test' def patchArgs = ['--patch-module', "$moduleName=" + files(sourceSets.test.resources.srcDirs).asPath ] tasks.named('compileTestJava') { options.compilerArgs += patchArgs } tasks.named('test') { jvmArgs += patchArgs }