1 # those options are needed to remove JDK11 reflective access warnings at build and run time
2 # GROOVY_TURN_OFF_JAVA_WARNINGS=true cannot be passed directly
3 # see https://dev.to/erichelgeson/removing-illegal-reflective-access-warnings-in-grails-4-393o
5 export JDK_JAVA_OPTIONS="
6 --add-opens=java.base/java.io=ALL-UNNAMED
7 --add-opens=java.base/java.lang=ALL-UNNAMED
8 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED
9 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
10 --add-opens=java.base/java.net=ALL-UNNAMED
11 --add-opens=java.base/java.nio=ALL-UNNAMED
12 --add-opens=java.base/java.nio.charset=ALL-UNNAMED
13 --add-opens=java.base/java.nio.file=ALL-UNNAMED
14 --add-opens=java.base/java.util=ALL-UNNAMED
15 --add-opens=java.base/java.util.jar=ALL-UNNAMED
16 --add-opens=java.base/java.util.stream=ALL-UNNAMED
17 --add-opens=java.base/java.util.zip=ALL-UNNAMED
18 --add-opens java.base/sun.nio.ch=ALL-UNNAMED
19 --add-opens java.base/sun.nio.fs=ALL-UNNAMED
21 # --illegal-access=permit #default option, can be set to warn to retrieve all details