From 281e1672e0c5cc58dd6d5f5de314a3d4c0ecc9b5 Mon Sep 17 00:00:00 2001 From: Neil Winton Date: Mon, 20 Feb 2023 14:04:02 +0000 Subject: [PATCH] Add workaround for NPE under Kubernetes :-( --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 18db2fa..e86cd95 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,11 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-starter-test' } +tasks.named("bootBuildImage") { + // Workaround for NPE - see https://github.com/oracle/graal/issues/4757 + environment["BP_NATIVE_IMAGE_BUILD_ARGUMENTS"] = "-H:-UseContainerSupport" +} + tasks.named('test') { useJUnitPlatform() }