MockFtpServer is not a JPMS module

This commit is contained in:
Jörg Prante 2024-04-21 10:19:27 +02:00
parent b4dc1f5203
commit f189ccc4cf
3 changed files with 18 additions and 4 deletions

View file

@ -5,4 +5,16 @@ dependencies {
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
}

View file

@ -1,9 +1,10 @@
module org.xbib.files.ftp.fs.test {
requires MockFtpServer;
requires org.hamcrest;
requires org.junit.jupiter.api;
requires org.junit.jupiter.params;
requires org.mockito;
requires MockFtpServer;
requires org.slf4j;
requires org.xbib.files.ftp;
requires org.xbib.files.ftp.fs;
exports org.xbib.io.ftp.fs.test;

View file

@ -28,9 +28,10 @@ dependencyResolutionManagement {
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('junit4', 'junit', 'junit').version('4.13.2')
library('mockftpserver', 'org.mockftpserver', 'MockFtpServer').version('2.7.1')
library('mockito-core', 'org.mockito', 'mockito-core').version('5.6.0')
library('mockito-junit-jupiter', 'org.mockito', 'mockito-junit-jupiter').version('5.6.0')
library('mockftpserver', 'org.mockftpserver', 'MockFtpServer').version('3.1.0')
library('mockito-core', 'org.mockito', 'mockito-core').version('5.11.0')
library('mockito-junit-jupiter', 'org.mockito', 'mockito-junit-jupiter').version('5.11.0')
library('slf4j', 'org.slf4j', 'slf4j-api').version('2.0.13')
}
}
}