I’m trying to run code using the application plugin, and it won’t run - I get the “No value has been specified for property ‘mainClassName’” error.
Here’s a slimmed down version of my build.gradle script:
apply plugin: ‘java’ apply plugin: ‘application’
mainClassName = “com.nurflugel.ivybrowser.ui.IvyBrowserMainFrame”
repositories and Ivy dependencies listed…
When I run, I get
gradle run :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :run
FAILURE: Build failed with an exception.
-
What went wrong: Execution failed for task ‘:run’. Cause: No main class specified
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
The stacktrace, of course, says there’s no main class specified: Caused by: java.lang.IllegalStateException: No main class specified
According to the documentation page, I believe I’ve got my main class specified correctly - any clue why that’s not being picked up?
I’m using 1.0 milestone 7, btw.
Thanks,
Douglas Bullard