PlayApplicationSpec

API Documentation:PlayApplicationSpec

Note: This class is incubating and may change in a future version of Gradle.

Definition of a Play Framework software component that is built by Gradle.

Properties

PropertyDescription
binaries
Incubating

The binaries that are built for this component. You can use this to configure the binaries for this component.

displayName
Incubating

Returns a human-consumable display name for this component.

injectedRoutesGenerator
Incubating

Will an injected router be generated for this application?

source
Deprecated
Incubating

The source sets that are used to build this component.

Methods

MethodDescription
platform(platformRequirements)
Incubating

Specifies a PlayPlatform with a given set of requirements that this component should be built be for. Can accept a map of play, scala and/or java requirements or a string representation of the desired play platform.

sources(action)
Incubating

Configures the source sets used to build this component.

targetPlatform(targetPlatform)
Incubating

Specifies a platform that this component should be built be for.

Script blocks

No script blocks

Property details

ModelMap<BinarySpec> binaries (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The binaries that are built for this component. You can use this to configure the binaries for this component.

String displayName (read-only)

Note: This property is incubating and may change in a future version of Gradle.

Returns a human-consumable display name for this component.

boolean injectedRoutesGenerator

Note: This property is incubating and may change in a future version of Gradle.

Will an injected router be generated for this application?

ModelMap<LanguageSourceSet> source (read-only)

Note: This property is deprecated and will be removed in the next major version of Gradle.

Note: This property is incubating and may change in a future version of Gradle.

The source sets that are used to build this component.

Method details

void platform(Object platformRequirements)

Note: This method is incubating and may change in a future version of Gradle.

Specifies a PlayPlatform with a given set of requirements that this component should be built be for. Can accept a map of play, scala and/or java requirements or a string representation of the desired play platform.

model {
     components {
         play {
             platform 'play-2.3.9'
             platform play: '2.3.2'
             platform play: '2.3.6', scala: '2.10'
             platform play: '2.3.7', scala: '2.11', java: '1.8'
         }
     }
 }

void sources(Action<? super ModelMap<LanguageSourceSet>> action)

Note: This method is incubating and may change in a future version of Gradle.

Configures the source sets used to build this component.

void targetPlatform(String targetPlatform)

Note: This method is incubating and may change in a future version of Gradle.

Specifies a platform that this component should be built be for.