Skip to content
Permalink
Browse files

Add the "badass runtime plugin" to build.gradle

  • Loading branch information...
joeha480 committed Apr 24, 2019
1 parent 9871ffe commit 9e51b8c0a1a8fcea4f90e7ba6e149e5580d839c2
Showing with 11 additions and 0 deletions.
  1. +11 −0 build.gradle
@@ -2,6 +2,7 @@ plugins {
id 'application'
id 'maven-publish'
id 'signing'
id 'org.beryx.runtime' version '1.1.7'
}

mainClassName = "org.daisy.dotify.cli.DotifyCLI"
@@ -214,6 +215,16 @@ publishing {
}
}

import org.gradle.internal.os.OperatingSystem
def os = OperatingSystem.current().getFamilyName()

runtime {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
modules = ['java.base', 'java.desktop', 'java.logging', 'java.prefs', 'java.xml']
imageDir = file("$buildDir/image/$name-${version}")
imageZip = file("$buildDir/distributions/$name-${version}-${os}.zip")
}

wrapper {
distributionType = Wrapper.DistributionType.ALL
}

0 comments on commit 9e51b8c

Please sign in to comment.
You can’t perform that action at this time.