Skip to content

Commit

Permalink
Add workaround for NPE under Kubernetes :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
ndwinton committed Feb 20, 2023
1 parent dc67ac1 commit 281e167
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 281e167

Please sign in to comment.