Skip to content

Commit

Permalink
First try with jlink
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Jun 4, 2019
1 parent 16b307a commit 8c3751e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ plugins {
id 'com.github.ben-manes.versions' version '0.21.0'
id 'org.javamodularity.moduleplugin' version '1.5.0'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.beryx.jlink' version '2.10.4'
}

// use the gradle build scan feature: https://scans.gradle.com/get-started
Expand Down Expand Up @@ -589,6 +590,22 @@ task snapJar(dependsOn: "releaseJar", type: Delete) {
delete fileTree(dir: "$buildDir/releases/", exclude: "JabRef-${project.version}.jar")
}

jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'JabRefMain'
}

addOptions("--bind-services")

forceMerge "javafx"
forceMerge "org.controlsfx.controls"
forceMerge "org.bouncycastle.provider"
forceMerge "java.xml.bind"

//forceMerge('log4j-api')
}

jmh {
warmupIterations = 5
iterations = 10
Expand Down

0 comments on commit 8c3751e

Please sign in to comment.