Skip to content

Commit

Permalink
Fixing the build for securemock on java 17 (#1987)
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Aug 16, 2022
1 parent 89acf36 commit 1d411e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions mr/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ itestJar {

tasks.named("test").configure {
jvmArgs "--add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
}

eclipse.classpath.file {
Expand Down
1 change: 1 addition & 0 deletions spark/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ if (JavaVersion.current() >= JavaVersion.VERSION_17) {
task.configure {
jvmArgs "--add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
jvmArgs "--add-opens=java.base/java.nio=ALL-UNNAMED" // Needed for org.apache.spark.SparkConf, which indirectly uses java.nio.DirectByteBuffer
jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
}
}
}
Expand Down
1 change: 1 addition & 0 deletions spark/sql-20/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ if (JavaVersion.current() >= JavaVersion.VERSION_16) {
if (task.getName().startsWith("test"))
task.configure {
jvmArgs "--add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
}}
}

Expand Down
1 change: 1 addition & 0 deletions spark/sql-30/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ if (JavaVersion.current() >= JavaVersion.VERSION_16) {
task.configure {
jvmArgs "--add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
jvmArgs "--add-opens=java.base/java.nio=ALL-UNNAMED" // Needed for org.apache.spark.SparkConf, which indirectly uses java.nio.DirectByteBuffer
jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
}}
}

Expand Down

0 comments on commit 1d411e5

Please sign in to comment.