Hello.
Why this doesn’t work
Execution failed for task ‘:run’.
No main class specified and classpath is not an executable jar.
Hello.
Why this doesn’t work
No main class specified and classpath is not an executable jar.
You’re using the application
plugin, which has one required configuration option. You must specify the name of the main class for the application (the class containing public static void main(String[] args)
).
i.e.
application {
mainClassName = "org.sample.Application"
}