Groovy Documentation

org.gradle.api.plugins
[Groovy] Class ApplicationPluginConvention

java.lang.Object
  org.gradle.api.plugins.ApplicationPluginConvention

class ApplicationPluginConvention
extends java.lang.Object

A Convention used for the ApplicationPlugin.

Authors:
Rene Groeschke


Property Summary
CopySpec applicationDistribution

java.lang.String applicationName

The name of the application.

java.lang.String mainClassName

The fully qualified name of the application's main class.

Project project

 
Constructor Summary
ApplicationPluginConvention(Project project)

 
Method Summary
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

applicationDistribution

CopySpec applicationDistribution

The specification of the contents of the distribution.

Use this CopySpec to 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.


applicationName

java.lang.String applicationName
The name of the application.


mainClassName

java.lang.String mainClassName
The fully qualified name of the application's main class.


project

final Project project


 
Constructor Detail

ApplicationPluginConvention

ApplicationPluginConvention(Project project)


 

Groovy Documentation