Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the build for securemock on java 17 #1987

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions mr/build.gradle
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
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
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
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