Class ApplicationPluginConvention
java.lang.Object
org.gradle.api.plugins.ApplicationPluginConvention
The Convention used for configuring the ApplicationPlugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArray of string arguments to pass to the JVM when running the applicationabstract CopySpecThe specification of the contents of the distribution.abstract StringThe name of the application.abstract StringDirectory to place executables inabstract StringThe fully qualified name of the application's main class.abstract Projectabstract voidsetApplicationDefaultJvmArgs(Iterable<String> applicationDefaultJvmArgs) Array of string arguments to pass to the JVM when running the applicationabstract voidsetApplicationDistribution(CopySpec applicationDistribution) abstract voidsetApplicationName(String applicationName) The name of the application.abstract voidsetExecutableDir(String executableDir) Directory to place executables inabstract voidsetMainClassName(String mainClassName) The fully qualified name of the application's main class.
-
Constructor Details
-
ApplicationPluginConvention
public ApplicationPluginConvention()
-
-
Method Details
-
getApplicationName
The name of the application. -
setApplicationName
The name of the application. -
getMainClassName
The fully qualified name of the application's main class. -
setMainClassName
The fully qualified name of the application's main class. -
getApplicationDefaultJvmArgs
-
setApplicationDefaultJvmArgs
-
getExecutableDir
-
setExecutableDir
Directory to place executables in- Since:
- 4.5
-
getApplicationDistribution
The specification of the contents of the distribution.
Use this
CopySpecto include extra files/resource in the application distribution.apply plugin: 'application' applicationDistribution.from("some/dir") { include "*.txt" }Note that the application plugin pre configures this spec to; include the contents of "
src/dist", copy the application start scripts into the "bin" directory, and copy the built jar and its dependencies into the "lib" directory. -
setApplicationDistribution
-
getProject
-