public class PlayPlatform extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PLAY_VERSION
The default Play version used if no Play version was configured.
|
Constructor and Description |
---|
PlayPlatform(ObjectFactory objectFactory) |
Modifier and Type | Method and Description |
---|---|
Provider<String> |
getDependencyNotation(String playModule)
Returns the dependency notation (group/name/version) for a given Play module including its compatible Scala version.
|
Property<JavaVersion> |
getJavaVersion()
Returns the Java version.
|
Property<String> |
getPlayVersion()
Returns the Play version.
|
Provider<String> |
getScalaCompatibilityVersion()
Returns the Scala compatibility version.
|
Property<String> |
getScalaVersion()
Returns the Scala version.
|
public static final String DEFAULT_PLAY_VERSION
@Inject public PlayPlatform(ObjectFactory objectFactory)
@Input public Property<String> getPlayVersion()
Used the default Play version if it wasn't configured through the extension.
@Input public Property<String> getScalaVersion()
Uses a sensible default version based on the configured Play version if no value was provided.
@Internal public Provider<String> getScalaCompatibilityVersion()
The Scala compatibility version is comprised of the major and minor version of the configured Scala version. For example, the compatibility version of Scala 2.12.2 is 2.12.
getScalaVersion()
@Input public Property<JavaVersion> getJavaVersion()
Uses a sensible default version based on the configured Play version if no value was provided.
public Provider<String> getDependencyNotation(String playModule)
For example, the dependency notation for the Play module "play-docs" for Play 2.6.15 and Scala 2.12.2 would evaluate to "com.typesafe.play:play-docs_2.12:2.6.15".
playModule
- The Play modulegetScalaCompatibilityVersion()