From 397e0d671a7524da352a18d6e301dfcb0e7342f9 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Tue, 3 Jan 2023 16:23:22 +0000 Subject: [PATCH] Enable reflection for java.lang module since upgrading to Java 17 (#697) --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 34fb2fbb..45bba6c3 100644 --- a/build.gradle +++ b/build.gradle @@ -19,6 +19,10 @@ java { // Spring Boot springBoot { buildInfo() } +bootBuildImage { + environment['BPE_DELIM_JAVA_TOOL_OPTIONS'] = ' ' + environment['BPE_APPEND_JAVA_TOOL_OPTIONS'] = '--add-opens=java.base/java.lang=ALL-UNNAMED' +} gitProperties { failOnNoGitDirectory = false } jar { enabled = false }