Skip to content

Commit

Permalink
Add nativeImage closure with args
Browse files Browse the repository at this point in the history
These were recommended by @ilopmar in a comment
on micronaut-acme Issue 154:
micronaut-projects/micronaut-acme#154 (comment)
  • Loading branch information
msgilligan committed Jul 1, 2021
1 parent 0d0ca04 commit 9e13215
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,17 @@ dependencies {
application {
mainClass.set("com.msgilligan.micronaut.acme.Application")
}

java {
sourceCompatibility = JavaVersion.toVersion("11")
targetCompatibility = JavaVersion.toVersion("11")
}

nativeImage {
args = [
'--initialize-at-run-time=io.netty.handler.ssl.OpenSsl,io.netty.handler.ssl.OpenSslPrivateKeyMethod,io.netty.internal.tcnative.CertificateVerifier,io.netty.internal.tcnative.SSL,io.netty.internal.tcnative.SSLPrivateKeyMethod'
]
}

dockerBuild {
images = ["${System.env.DOCKER_IMAGE ?: project.name}:$project.version"]
Expand Down

0 comments on commit 9e13215

Please sign in to comment.