This message was deleted.
# community-support
s
This message was deleted.
v
What do you mean by configure? What do you want to configure?
p
using the
javaFx
DSL from the
org.openjfx.javafxplugin
gradle plugin
v
And is there a reason you don't want to configure it always? You can probably configure the extension in a configuration action of the
runGUI
task, so if you do not otherwise break task configuration avoidance it should only be executed if the task is going to be executed too, but this is usually not the best idea but a bit hacky.
p
Ah, I wanted to have a way to run my application without and with GUI through which command you do to run the program, but I guess I'll stick with a terminal prompt
v
You usually should not run it through Gradle anyway, Gradle is a build tool, not an application framework. The
run
task is for ruining the application for test and debug purposes. So either make two entrypoint classes, one for GUI, one for console, or determine whether the user runs headless to decide which mode to use, or have done parameter to select a more, or a combination of these.
p
Ah yes you're right, a parameter should work yes !
👌 1
e
it's almost certainly better to have gradle build a startscript and run that outside of gradle - then you're not blocking the gradle daemon while your application is running