Search in sources :

Example 1 with PlayMajorVersion

use of org.gradle.play.internal.platform.PlayMajorVersion in project gradle by gradle.

the class PlayPlatformResolver method resolve.

private PlayPlatform resolve(String name, String playVersion, String scalaVersion, String javaVersion) {
    PlayMajorVersion playMajorVersion = PlayMajorVersion.forPlayVersion(playVersion);
    JavaPlatform javaPlatform = getJavaPlatform(javaVersion);
    ScalaPlatform scalaPlatform = getScalaPlatform(playMajorVersion, scalaVersion);
    return new DefaultPlayPlatform(name, playVersion, scalaPlatform, javaPlatform);
}
Also used : DefaultJavaPlatform(org.gradle.jvm.platform.internal.DefaultJavaPlatform) JavaPlatform(org.gradle.jvm.platform.JavaPlatform) ScalaPlatform(org.gradle.language.scala.ScalaPlatform) DefaultScalaPlatform(org.gradle.language.scala.internal.DefaultScalaPlatform) PlayMajorVersion(org.gradle.play.internal.platform.PlayMajorVersion)

Aggregations

JavaPlatform (org.gradle.jvm.platform.JavaPlatform)1 DefaultJavaPlatform (org.gradle.jvm.platform.internal.DefaultJavaPlatform)1 ScalaPlatform (org.gradle.language.scala.ScalaPlatform)1 DefaultScalaPlatform (org.gradle.language.scala.internal.DefaultScalaPlatform)1 PlayMajorVersion (org.gradle.play.internal.platform.PlayMajorVersion)1