Does Gradle Play support Scala 2.12? (Gradle 4.2 RC2)


(Michael Wu) #1

Hello,

Gradle version: 4.2 RC2

Below was the error after upgrade to Play 2.6.5 and Scala 2.12:

A problem occurred configuring project ‘:abc-rest’.

Exception thrown while executing model rule: PlayApplicationPlugin.Rules#createBinaries(ModelMap, PlayApplicationSpecInternal, PlatformResolvers, PlayToolChainInternal, PlayPluginConfigurations, File, ProjectIdentifier) > create(binary)
Not a supported Scala platform identifier 2.12. Supported values are: [‘2.10’, ‘2.11’].

settings in build.gradle:

apply plugin: “play”

model {
components {
play {
platform play: ‘2.6.5’, scala: ‘2.12’, java: java_version
sources {
scala {
source.srcDir “src/main/scala”
}
}
}

}

}