Skip to content

Commit

Permalink
[ikonli-browser] Add jlink configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed May 2, 2021
1 parent 8f1aa8a commit 5ed36b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
22 changes: 4 additions & 18 deletions apps/ikonli-browser/ikonli-browser.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
*/
plugins {
id 'application'
// id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'org.beryx.jlink'
}

ext.moduleName = 'org.kordamp.ikonli.browser'
ext.moduleMainClass = 'org.kordamp.ikonli.browser.Launcher'

// mainClassName = "${moduleName}/${moduleMainClass}"
//mainClassName = "${moduleName}/${moduleMainClass}"
mainClassName = moduleMainClass

repositories {
Expand Down Expand Up @@ -140,28 +140,14 @@ distTar {
archiveClassifier = osdetector.os
}

/*
jlink {
imageDir = project.layout.buildDirectory.dir("ikonli-browser-${version}-${platform}".toString())
imageZip = project.layout.buildDirectory.file("ikonli-browser-${version}-${platform}.zip".toString())
imageName = "ikonli-browser-standalone-${version}-${platform}".toString()
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'ikonli-browser'
noConsole = true
}
addExtraDependencies('javafx')
}
*/

/*
shadowJar {
archiveClassifier = platform
mergeServiceFiles()
exclude 'module-info.class'
exclude 'META-INF/maven/**'
manifest {
attributes('Main-Class': moduleMainClass)
}
}
*/
assemble.dependsOn(jlinkZip)
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,4 @@ project.rootProject.gradle.addBuildListener(new BuildAdapter() {
}
}
}
})

new File('VERSION').text = project.version
})
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ kordampBuildVersion = 2.4.0
gitPluginVersion = 3.0.0
modularityPluginVersion = 1.8.2
java9cPluginVersion = 0.2.3
jlinkPluginVersion = 2.21.1
miglayoutVersion = 11.0
rxjavaVersion = 3.0.12

Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pluginManagement {
id 'com.google.osdetector' version osPluginVersion
id 'org.jonnyzzz.java9c' version java9cPluginVersion
id 'org.javamodularity.moduleplugin' version modularityPluginVersion
id 'org.beryx.jlink' version jlinkPluginVersion
}
}

Expand Down

0 comments on commit 5ed36b7

Please sign in to comment.