-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
secondary Launcher fails with application main class missing #244
Comments
Is it possible this either a bug or misunderstanding with the Kotlin DSL? I'm not able to reproduce this issue by adding these lines to an app built with Groovy DSL:
|
Yes, seems like something that works different in the Kotlin DSL. However my build file is rather big, with version catalog and all, so I'd rather not go back to groovy (and honestly I don't like Groovy because there are too many ambiguities). |
Could you provide a repository with a minimal reproducible example? |
I have created a minimal example that exposes the problem. |
The solution with |
@airsquared I finally had time to look into this and have prepared a PR for this. Please apply. |
Thanks! Merged |
It's so funny seeing links to Aya in an issue like this! 🤣 thanks for the fix |
I try to create a secondary launcher for my JavaFX app. The class
com.dua3.docdiff.app.fx.AppMain
starts a JavaFX application,com.dua3.docdiff.app.cli.Main
is a command line tool that does not use JavaFX. Both classes are in the same module.I have this in my Kotlin-DSL build file:
When I run
./gradlew jpackage
, I get the following error:(This is the localized message, it should translate to "application main class missing".)
Both launchers work if I comment out the other launcher (and replace
secondaryLauncher
withlauncher
).I have not idea what could be wrong since I clearly set
mainClass
for both launchers.The versions I am using are Gradle 8.4 and Java 21.0.1, jlink plugin version 3.0.0.
The text was updated successfully, but these errors were encountered: