From e9bc74f1a224bad07609870527614d54a2ed9888 Mon Sep 17 00:00:00 2001 From: AMIT KUMAR SINGH <98787372+aksingh-es@users.noreply.github.com> Date: Tue, 5 Apr 2022 10:41:46 -0700 Subject: [PATCH] JDK 17 support (#489) Signed-off-by: Amit Singh --- .github/workflows/CI.yml | 2 +- build.gradle | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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'