forked from harbby/sylph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile-java11.gradle
35 lines (30 loc) · 1.39 KB
/
profile-java11.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//java 11
sourceCompatibility = 11
targetCompatibility = 11
if (project == project(':sylph-web')) {
project.dependencies {
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0'
compile group: 'javax.activation', name: 'activation', version: '1.1.1'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << "--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED"
options.compilerArgs << "--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED"
options.compilerArgs << "--add-exports=java.base/sun.reflect.generics.tree=ALL-UNNAMED"
options.compilerArgs << "--add-exports=java.base/sun.reflect.generics.repository=ALL-UNNAMED"
options.compilerArgs << "--add-exports=java.base/sun.nio.cs=ALL-UNNAMED"
options.compilerArgs << "--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED"
}
tasks.withType(Test) {
jvmArgs += "--add-modules=jdk.unsupported"
jvmArgs += "--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED"
jvmArgs += "--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED"
jvmArgs += "--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"
}
tasks.withType(JavaExec) {
jvmArgs += "--add-modules=jdk.unsupported"
jvmArgs += "--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED"
jvmArgs += "--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED"
jvmArgs += "--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"
}