@@ -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
4040tasks.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
4548tasks.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
5170val 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
7495sourceSets {
0 commit comments