public class PlayExtension extends Object
It is not strictly necessary to configure the Scala and Java version. The plugin picks sensible default versions based on the provided Play version.
The following example demonstrate the use of the extension in a build script using the Groovy DSL:
play { platform { playVersion = '2.6.14' scalaVersion = '2.11' javaVersion = JavaVersion.VERSION_1_9 } injectedRoutesGenerator = true }
Constructor and Description |
---|
PlayExtension(ObjectFactory objectFactory) |
Modifier and Type | Method and Description |
---|---|
Property<Boolean> |
getInjectedRoutesGenerator()
Returns the property configuring if the default static router should be used.
|
PlayPlatform |
getPlatform()
Returns the Play platform.
|
void |
platform(Action<? super PlayPlatform> action)
Configures the target Play platform used for the application.
|
public PlayExtension(ObjectFactory objectFactory)
public void platform(Action<? super PlayPlatform> action)
action
- Action configuring the Play platform.public PlayPlatform getPlatform()
platform(Action)