But to answer the actual question, the same.
You just need to put the arguments of the function call (
runtimeClasspath
) into parentheses.
a
Ayfri
08/23/2022, 10:34 PM
ah okay, thanks !
v
Vampire
08/23/2022, 10:35 PM
runtimeOnly
is probably what your want
a
Ayfri
08/23/2022, 10:37 PM
I don't really know it was just a snippet I found while trying KTX saying to put that if main class is not found, but it was because of another mistake that my class was not found finally. I had never seen
runtimeClassPath files
before ss this is why I asked !
v
Vampire
08/23/2022, 10:40 PM
Yeah, that snippet anyway looks like a big bad hack, noone should ever do. :-)