Definition of a Play Framework software component that is built by Gradle.
| Type | Name and description |
|---|---|
void |
platform(Object platformRequirements)Specifies a PlayPlatform with a given set of requirements that this component should be built be for. |
| Methods inherited from class | Name |
|---|---|
interface PlatformAwareComponentSpec |
targetPlatform |
interface ComponentSpec |
binaries, getBinaries, getDisplayName, getProjectPath, getSource, getSources, sources |
interface Named |
getName |
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'
}
}
}
platformRequirements - Map of Play requirements or the name of an Play platform.