Skip to content

Commit

Permalink
Add jvmArgs needed by Chronicle with jdk 17 strong encapsulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tara Drwenski committed Jul 18, 2024
1 parent c166171 commit b9f2a2a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions gradle/any/properties.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,17 @@ ext {
getPropertyOrFailBuild = this.&getPropertyOrFailBuild
addFilteredSysProps = this.&addFilteredSysProps
}

ext {
jvmArguments = [
'--add-exports', 'java.base/jdk.internal.ref=ALL-UNNAMED',
'--add-exports', 'java.base/sun.nio.ch=ALL-UNNAMED',
'--add-exports', 'jdk.unsupported/sun.misc=ALL-UNNAMED',
'--add-exports', 'jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED',
'--add-opens', 'jdk.compiler/com.sun.tools.javac=ALL-UNNAMED',
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'--add-opens', 'java.base/java.lang.reflect=ALL-UNNAMED',
'--add-opens', 'java.base/java.io=ALL-UNNAMED',
'--add-opens', 'java.base/java.util=ALL-UNNAMED',
]
}
4 changes: 4 additions & 0 deletions tdcommon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ spotless {
tasks.named('sourceJar').configure {
dependsOn('generateProto')
}

test {
jvmArgs = jvmArguments
}
6 changes: 5 additions & 1 deletion tds/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,14 @@ import org.akhikhl.gretty.AppAfterIntegrationTestTask

import java.nio.file.Paths

test {
jvmArgs = jvmArguments
}

gretty {
httpPort = 8081
contextPath = '/thredds'
jvmArgs = ['--add-exports', 'java.base/jdk.internal.ref=ALL-UNNAMED']
jvmArgs = jvmArguments
}

def testInfomation = [[name: 'freshInstallTest',
Expand Down

0 comments on commit b9f2a2a

Please sign in to comment.