j2html/j2html-codegen/build.gradle

16 lines
407 B
Groovy

dependencies {
implementation libs.jsoup
implementation project(':javapoet')
testImplementation testLibs.mockito.core
}
def moduleName = 'org.xbib.j2html.codegen.test'
def patchArgs = ['--patch-module', "$moduleName=" + files(sourceSets.test.resources.srcDirs).asPath ]
tasks.named('compileTestJava') {
options.compilerArgs += patchArgs
}
tasks.named('test') {
jvmArgs += patchArgs
}