Package org.gradle.api.plugins
Class ApplicationPluginConvention
java.lang.Object
org.gradle.api.plugins.ApplicationPluginConvention
Deprecated.
The Convention
used for configuring the ApplicationPlugin
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Array of string arguments to pass to the JVM when running the applicationabstract CopySpec
Deprecated.The specification of the contents of the distribution.abstract String
Deprecated.The name of the application.abstract String
Deprecated.Directory to place executables inabstract String
Deprecated.The fully qualified name of the application's main class.abstract Project
Deprecated.abstract void
setApplicationDefaultJvmArgs
(Iterable<String> applicationDefaultJvmArgs) Deprecated.Array of string arguments to pass to the JVM when running the applicationabstract void
setApplicationDistribution
(CopySpec applicationDistribution) Deprecated.abstract void
setApplicationName
(String applicationName) Deprecated.The name of the application.abstract void
setExecutableDir
(String executableDir) Deprecated.Directory to place executables inabstract void
setMainClassName
(String mainClassName) Deprecated.The fully qualified name of the application's main class.
-
Constructor Details
-
ApplicationPluginConvention
public ApplicationPluginConvention()Deprecated.
-
-
Method Details
-
getApplicationName
Deprecated.The name of the application. -
setApplicationName
Deprecated.The name of the application. -
getMainClassName
Deprecated.The fully qualified name of the application's main class. -
setMainClassName
Deprecated.The fully qualified name of the application's main class. -
getApplicationDefaultJvmArgs
Deprecated.Array of string arguments to pass to the JVM when running the application -
setApplicationDefaultJvmArgs
Deprecated.Array of string arguments to pass to the JVM when running the application -
getExecutableDir
Deprecated.Directory to place executables in- Since:
- 4.5
-
setExecutableDir
Deprecated.Directory to place executables in- Since:
- 4.5
-
getApplicationDistribution
Deprecated.The specification of the contents of the distribution.
Use this
CopySpec
to include extra files/resource in the application distribution.plugins { id 'application' } 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
Deprecated. -
getProject
Deprecated.
-
JavaApplication
instead. This class is scheduled for removal in Gradle 9.0.