Package org.gradle.api.plugins
Class ApplicationPluginConvention
- java.lang.Object
-
- org.gradle.api.plugins.ApplicationPluginConvention
-
@Deprecated public abstract class ApplicationPluginConvention extends java.lang.ObjectDeprecated.UseJavaApplicationinstead. This class is scheduled for removal in Gradle 9.0.The
Conventionused for configuring theApplicationPlugin.
-
-
Constructor Summary
Constructors Constructor Description ApplicationPluginConvention()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description abstract java.lang.Iterable<java.lang.String>getApplicationDefaultJvmArgs()Deprecated.Array of string arguments to pass to the JVM when running the applicationabstract CopySpecgetApplicationDistribution()Deprecated.The specification of the contents of the distribution.abstract java.lang.StringgetApplicationName()Deprecated.The name of the application.abstract java.lang.StringgetExecutableDir()Deprecated.Directory to place executables inabstract java.lang.StringgetMainClassName()Deprecated.The fully qualified name of the application's main class.abstract ProjectgetProject()Deprecated.abstract voidsetApplicationDefaultJvmArgs(java.lang.Iterable<java.lang.String> applicationDefaultJvmArgs)Deprecated.Array of string arguments to pass to the JVM when running the applicationabstract voidsetApplicationDistribution(CopySpec applicationDistribution)Deprecated.abstract voidsetApplicationName(java.lang.String applicationName)Deprecated.The name of the application.abstract voidsetExecutableDir(java.lang.String executableDir)Deprecated.Directory to place executables inabstract voidsetMainClassName(java.lang.String mainClassName)Deprecated.The fully qualified name of the application's main class.
-
-
-
Method Detail
-
getApplicationName
public abstract java.lang.String getApplicationName()
Deprecated.The name of the application.
-
setApplicationName
public abstract void setApplicationName(java.lang.String applicationName)
Deprecated.The name of the application.
-
getMainClassName
public abstract java.lang.String getMainClassName()
Deprecated.The fully qualified name of the application's main class.
-
setMainClassName
public abstract void setMainClassName(java.lang.String mainClassName)
Deprecated.The fully qualified name of the application's main class.
-
getApplicationDefaultJvmArgs
public abstract java.lang.Iterable<java.lang.String> getApplicationDefaultJvmArgs()
Deprecated.Array of string arguments to pass to the JVM when running the application
-
setApplicationDefaultJvmArgs
public abstract void setApplicationDefaultJvmArgs(java.lang.Iterable<java.lang.String> applicationDefaultJvmArgs)
Deprecated.Array of string arguments to pass to the JVM when running the application
-
getExecutableDir
public abstract java.lang.String getExecutableDir()
Deprecated.Directory to place executables in- Since:
- 4.5
-
setExecutableDir
public abstract void setExecutableDir(java.lang.String executableDir)
Deprecated.Directory to place executables in- Since:
- 4.5
-
getApplicationDistribution
public abstract CopySpec getApplicationDistribution()
Deprecated.The specification of the contents of the distribution.
Use this
CopySpecto 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
public abstract void setApplicationDistribution(CopySpec applicationDistribution)
Deprecated.
-
getProject
public abstract Project getProject()
Deprecated.
-
-