This message was deleted.
# community-support
s
This message was deleted.
v
How do you execute that main function?
If you use a task of type
JavaExec
it should work. If you run the final built artifact, it will of course not work, anymore. You should most probably instead have a resource file, for example a properties file, with a placeholder, then configure the
processResources
task to
expand
that placeholder and at runtime read the version from that file.
i
whoops, I forgot to mention that I'm trying to have it available when I execute the artifact
v
Yeah, that's what I assumed and what my last paragraph is targeted at
thank you 1