dependencies { api project(':files-api') api project(':files-ftp') testImplementation testLibs.mockftpserver testImplementation testLibs.junit.jupiter.params testImplementation testLibs.mockito.core testImplementation testLibs.mockito.junit.jupiter testImplementation testLibs.slf4j } def moduleName = 'org.xbib.io.ftp.test' def patchArgs = ['--patch-module', "$moduleName=" + files(sourceSets.test.resources.srcDirs).asPath ] tasks.named('compileTestJava') { options.compilerArgs += patchArgs } tasks.named('test') { jvmArgs += patchArgs }