petr-panteleyev / jpackage-gradle-plugin

JPackage Gradle Plugin
https://codeberg.org/petr-panteleyev/jpackage-gradle-plugin
BSD 2-Clause "Simplified" License
97 stars 13 forks source link

Best way to add new launchers? #16

Closed soundasleep closed 2 years ago

soundasleep commented 2 years ago

Sorry for the newbie question, I'm a bit of a Gradle novice, but is this the best way to add new launchers?

tasks.jpackage {
  // ...
  launchers = [
    new org.panteleyev.jpackage.Launcher("CssDemoApp", "launcher.css-demo-app.properties")
  ]
}
# [launcher.css-demo-app.properties]
# 'The keys "module", "add-modules", "main-jar", "main-class", "arguments",
# "java-options", "app-version", "icon", and "win-console" can be used.'

main-class: my.separate.application.MainClass

I couldn't find any simpler syntax.

petr-panteleyev commented 2 years ago

Yes, that's correct.