MockFtpServer is not a JPMS module
This commit is contained in:
parent
b4dc1f5203
commit
f189ccc4cf
3 changed files with 18 additions and 4 deletions
|
@ -5,4 +5,16 @@ dependencies {
|
||||||
testImplementation testLibs.junit.jupiter.params
|
testImplementation testLibs.junit.jupiter.params
|
||||||
testImplementation testLibs.mockito.core
|
testImplementation testLibs.mockito.core
|
||||||
testImplementation testLibs.mockito.junit.jupiter
|
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
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
module org.xbib.files.ftp.fs.test {
|
module org.xbib.files.ftp.fs.test {
|
||||||
requires MockFtpServer;
|
|
||||||
requires org.hamcrest;
|
requires org.hamcrest;
|
||||||
requires org.junit.jupiter.api;
|
requires org.junit.jupiter.api;
|
||||||
requires org.junit.jupiter.params;
|
requires org.junit.jupiter.params;
|
||||||
requires org.mockito;
|
requires org.mockito;
|
||||||
|
requires MockFtpServer;
|
||||||
|
requires org.slf4j;
|
||||||
requires org.xbib.files.ftp;
|
requires org.xbib.files.ftp;
|
||||||
requires org.xbib.files.ftp.fs;
|
requires org.xbib.files.ftp.fs;
|
||||||
exports org.xbib.io.ftp.fs.test;
|
exports org.xbib.io.ftp.fs.test;
|
||||||
|
|
|
@ -28,9 +28,10 @@ dependencyResolutionManagement {
|
||||||
library('junit-jupiter-platform-launcher', 'org.junit.platform', 'junit-platform-launcher').version('1.10.1')
|
library('junit-jupiter-platform-launcher', 'org.junit.platform', 'junit-platform-launcher').version('1.10.1')
|
||||||
library('hamcrest', 'org.hamcrest', 'hamcrest-library').version('2.2')
|
library('hamcrest', 'org.hamcrest', 'hamcrest-library').version('2.2')
|
||||||
library('junit4', 'junit', 'junit').version('4.13.2')
|
library('junit4', 'junit', 'junit').version('4.13.2')
|
||||||
library('mockftpserver', 'org.mockftpserver', 'MockFtpServer').version('2.7.1')
|
library('mockftpserver', 'org.mockftpserver', 'MockFtpServer').version('3.1.0')
|
||||||
library('mockito-core', 'org.mockito', 'mockito-core').version('5.6.0')
|
library('mockito-core', 'org.mockito', 'mockito-core').version('5.11.0')
|
||||||
library('mockito-junit-jupiter', 'org.mockito', 'mockito-junit-jupiter').version('5.6.0')
|
library('mockito-junit-jupiter', 'org.mockito', 'mockito-junit-jupiter').version('5.11.0')
|
||||||
|
library('slf4j', 'org.slf4j', 'slf4j-api').version('2.0.13')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue