Various improvements to the Gradle plugin
Refactor and rework several areas of the Gradle plugin: - Refactor package structure into functional areas and configure each area separately via a new PluginFeatures interface. - Convert BootRunTask to extend RunTask rather than attempting to find existing RunTasks. - Simplify agent integration by no longer needing specific BootRunTask code. - Update the repackage task to consider the `mainClassName` property in addition to `springBoot.mainClass`. - Automatically set `mainClassName` when calling `run` or `runBoot` from `springBoot.mainClass` if there is one. - Ensure that explicitly defined `main` options on JavaExec tasks always take precedence. Fixes gh-547, gh-820, gh-886, gh-912
This commit is contained in:
@@ -400,8 +400,9 @@ The following configuration options are available:
|
||||
|Name |Description
|
||||
|
||||
|`mainClass`
|
||||
|The main class that should be run. If not specified the value from the manifest will be
|
||||
used, or if no manifest entry is the archive will be searched for a suitable class.
|
||||
|The main class that should be run. If not specified the `mainClassName` project property
|
||||
will be used or, if the no `mainClassName` id defined the archive will be searched for a
|
||||
suitable class.
|
||||
|
||||
|`providedConfiguration`
|
||||
|The name of the provided configuration (defaults to `providedRuntime`).
|
||||
|
||||
Reference in New Issue
Block a user