or you can use the application plugin, and pass args by configuring the
run
command
☝️ 1
n
napperley
05/03/2018, 9:28 PM
Prefer to keep the run task unchanged to cover th use case of running a program without args.
g
gildor
05/03/2018, 11:34 PM
Just create custom run task, it's standard way to do that with shadowJar and application plugin.
Actually, shadow plugin already provides task runShadow, that builds executable shadow jar and run it, if you don't want to change it and add custom arguments, just create a new task of the same type with custom args
n
napperley
05/04/2018, 6:27 AM
There doesn't seem to be a way to create a custom run task with Kotlin DSL.
g
gildor
05/04/2018, 7:12 AM
What do you mean? Of course you can create custom task in Kotlin DSL that based on some task type.
Your problem with creating of JavaExec task related to some other problem, not to Kotlin-DSL, I’m pretty sure