Commit 0c1efa47 authored by Andy Wilkinson's avatar Andy Wilkinson

Update documentation on how to configure the main class with Gradle

In 1.3, our Gradle plugin no longer automatically applies the
application plugin. This affects the default options that are
available for explicitly configuring a project's main class. This
commit updates the documentation accordingly.

Closes gh-3768
parent ba7d12c6
...@@ -366,12 +366,14 @@ The following configuration options are available: ...@@ -366,12 +366,14 @@ The following configuration options are available:
want the other Boot features but not this one) want the other Boot features but not this one)
|`mainClass` |`mainClass`
|The main class that should be run. If not specified the `mainClassName` project property |The main class that should be run. If not specified, and you have applied the application
will be used or, if the no `mainClassName` id defined the archive will be searched for a plugin, the `mainClassName` project property will be used. If the application plugin has
suitable class. "Suitable" means a unique class with a well-formed `main()` method (if not been applied or no `mainClassName` has been specified, the archive will be searched
more than one is found the build will fail). You should also be able to specify the main for a suitable class. "Suitable" means a unique class with a well-formed `main()` method
class name via the "run" task (`main` property) and/or the "startScripts" (if more than one is found the build will fail). If you have applied the application
(`mainClassName` property) as an alternative to using the "springBoot" configuration. plugin, the main class can also be specified via its "run" task (`main` property) and/or
its "startScripts" task (`mainClassName` property) as an alternative to using the
"springBoot" configuration.
|`classifier` |`classifier`
|A file name segment (before the extension) to add to the archive, so that the original is |A file name segment (before the extension) to add to the archive, so that the original is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment