Skip to content

Commit

Permalink
Fix native-image
Browse files Browse the repository at this point in the history
  • Loading branch information
jordeu committed Nov 5, 2021
1 parent a9b5165 commit 10e7af1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 2,120 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ license {

application {
mainClass.set("io.seqera.tower.agent.Agent")
applicationDefaultJvmArgs = ["-agentlib:native-image-agent=config-merge-dir=conf/"]
}

String gitVersion() {
Expand Down Expand Up @@ -116,6 +115,11 @@ graalvmNative {
mainClass = 'io.seqera.tower.agent.Agent'
configurationFileDirectories.from(file('conf'))
buildArgs(DefaultNativePlatform.currentOperatingSystem.isLinux() ? ['--static', '--libc=musl'] : [])
buildArgs.add('--allow-incomplete-classpath')
buildArgs.add('--report-unsupported-elements-at-runtime')
buildArgs.add('-H:+AddAllCharsets')
buildArgs.add('-H:EnableURLProtocols=https,http')
buildArgs.add('-H:+ReportExceptionStackTraces')
}

test {
Expand Down
47 changes: 0 additions & 47 deletions conf/jni-config.json

This file was deleted.

2 changes: 0 additions & 2 deletions conf/proxy-config.json

This file was deleted.

Loading

0 comments on commit 10e7af1

Please sign in to comment.