diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fbc362900..b5576e745 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,7 +11,7 @@ jobs: Build-ad: strategy: matrix: - java: [11] + java: [11,17] fail-fast: false name: Build and Test Anomaly detection Plugin diff --git a/build.gradle b/build.gradle index 46dd5647c..3c9a37f79 100644 --- a/build.gradle +++ b/build.gradle @@ -62,6 +62,8 @@ tasks.withType(JavaCompile) { } tasks.withType(Test) { systemProperty "file.encoding", "UTF-8" + jvmArgs("--add-opens", "java.base/java.time=ALL-UNNAMED") + jvmArgs("--add-opens", "java.base/java.util.stream=ALL-UNNAMED") } tasks.withType(Javadoc) { options.encoding = 'UTF-8'