net-http/net-http-server-netty/build.gradle

24 lines
701 B
Groovy

dependencies {
api project(':net-http-server')
api libs.netty.codec.http2
testImplementation project(':net-http-client-netty')
testImplementation project(':net-http-template-groovy')
testImplementation libs.datastructures.json.tiny
}
test {
systemProperty 'application.name', 'test'
systemProperty 'application.home', 'src/test/resources'
systemProperty 'application.profile', 'test'
}
def moduleName = 'org.xbib.net.http.server.netty.test'
def patchArgs = ['--patch-module', "$moduleName=" + files(sourceSets.test.resources.srcDirs).asPath ]
tasks.named('compileTestJava') {
options.compilerArgs += patchArgs
}
tasks.named('test') {
jvmArgs += patchArgs
}