Slackbot
05/27/2022, 3:02 AMJohn Bellini
05/27/2022, 4:41 AM--stacktrace and --infoTan kok feeng
05/27/2022, 6:20 AMTan kok feeng
05/27/2022, 6:25 AMJohn Bellini
05/27/2022, 6:35 AMVampire
05/27/2022, 6:47 AMmain is deprecated and wrong anyway. You would need to specify the main class there and you are giving the jar as argument. The javaExec is aware of runnable jars. Just do not set main and set the jar as sole class path entry and it should work automatically.Vampire
05/27/2022, 6:51 AMjavaexec here but a task of type JavaExec, not depend on build and not specify the jar path manually. Use a task of type JavaExec and set the task that builds the jar as class path entry, then you should get the needed task dependency automatically implicitly and it uses the output Jar of the task automatically.Vampire
05/27/2022, 6:52 AM