mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
49 lines
1.2 KiB
Groovy
49 lines
1.2 KiB
Groovy
plugins {
|
|
id "io.freefair.lombok" version "8.11"
|
|
}
|
|
|
|
group = 'com.reajason.javaweb'
|
|
version = rootProject.version
|
|
|
|
dependencies {
|
|
implementation 'net.bytebuddy:byte-buddy'
|
|
|
|
implementation 'commons-beanutils:commons-beanutils:1.9.3'
|
|
|
|
testImplementation platform('org.junit:junit-bom')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
}
|
|
|
|
|
|
def runtimeJvmArgs = [
|
|
'--add-opens=java.base/java.lang=ALL-UNNAMED',
|
|
'--add-opens=java.base/java.util=ALL-UNNAMED',
|
|
'--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED',
|
|
'--add-opens=java.xml/com.sun.org.apache.xalan.internal.xsltc.runtime=ALL-UNNAMED'
|
|
]
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.compilerArgs += [
|
|
'--add-exports=java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED',
|
|
'--add-exports=java.xml/com.sun.org.apache.xalan.internal.xsltc.runtime=ALL-UNNAMED'
|
|
]
|
|
}
|
|
|
|
tasks.withType(Test).configureEach {
|
|
jvmArgs += runtimeJvmArgs
|
|
}
|
|
|
|
// For running the application
|
|
tasks.withType(JavaExec).configureEach {
|
|
jvmArgs += runtimeJvmArgs
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(11)
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
} |