Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit ca73886

Browse files
Upgrade to jdk17 (#245)
Co-authored-by: Antonio Murgia <antonio.murgia@agilelab.it>
1 parent 305523b commit ca73886

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/workflows/compile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
cache: 'gradle'
2222
distribution: temurin
23-
java-version: 11
23+
java-version: 17
2424
- name: Setup Gradle
2525
uses: gradle/gradle-build-action@v3
2626
- name: Execute Gradle build

buildSrc/src/main/kotlin/whitefox.java-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919

2020
java {
2121
toolchain {
22-
languageVersion = JavaLanguageVersion.of(11)
22+
languageVersion = JavaLanguageVersion.of(17)
2323
}
2424
}
2525

client-spark/build.gradle.kts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
testImplementation("io.delta:delta-sharing-spark_2.13")
2424

2525
//SPARK
26-
testImplementation( "org.apache.spark:spark-sql_2.13")
26+
testImplementation("org.apache.spark:spark-sql_2.13")
2727
testImplementation("com.github.mrpowers:spark-fast-tests_2.13:1.3.0")
2828

2929
//JUNIT
@@ -39,13 +39,32 @@ tasks.getByName<Test>("test") {
3939

4040
tasks.withType<Test> {
4141
environment = env.allVariables()
42-
systemProperty ("java.util.logging.manager", "java.util.logging.LogManager") //TODO modularize the whitefox-conventions plugin
42+
systemProperty(
43+
"java.util.logging.manager",
44+
"java.util.logging.LogManager"
45+
) //TODO modularize the whitefox-conventions plugin
4346
}
4447

4548
tasks.register<Test>("clientSparkTest") {
4649
useJUnitPlatform {
4750
includeTags.add("clientSparkTest")
4851
}
52+
jvmArgs(
53+
"--add-opens=java.base/java.lang=ALL-UNNAMED",
54+
"--add-opens=java.base/java.lang.invoke=ALL-UNNAMED",
55+
"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED",
56+
"--add-opens=java.base/java.io=ALL-UNNAMED",
57+
"--add-opens=java.base/java.net=ALL-UNNAMED",
58+
"--add-opens=java.base/java.nio=ALL-UNNAMED",
59+
"--add-opens=java.base/java.util=ALL-UNNAMED",
60+
"--add-opens=java.base/java.util.concurrent=ALL-UNNAMED",
61+
"--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED",
62+
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED",
63+
"--add-opens=java.base/sun.nio.cs=ALL-UNNAMED",
64+
"--add-opens=java.base/sun.security.action=ALL-UNNAMED",
65+
"--add-opens=java.base/sun.util.calendar=ALL-UNNAMED",
66+
"--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED"
67+
)
4968
}
5069

5170
val openApiCodeGenDir = "generated/openapi"
@@ -57,7 +76,8 @@ val whiteFoxGenerate = tasks.register<GenerateTask>("openapiGenerateClientApi")
5776
inputSpec.set("$rootDir/protocol/whitefox-protocol-api.yml")
5877
library.set("native")
5978
outputDir.set(generatedCodeDirectory)
60-
additionalProperties.set(mapOf(
79+
additionalProperties.set(
80+
mapOf(
6181
"apiPackage" to "io.whitefox.api.client",
6282
"invokerPackage" to "io.whitefox.api.utils",
6383
"modelPackage" to "io.whitefox.api.client.model",
@@ -68,7 +88,8 @@ val whiteFoxGenerate = tasks.register<GenerateTask>("openapiGenerateClientApi")
6888
"serializationLibrary" to "jackson",
6989
"useJakartaEe" to "true",
7090
"useRuntimeException" to "true"
71-
))
91+
)
92+
)
7293
}
7394

7495
sourceSets {

0 commit comments

Comments
 (0)