Hi,
@sterling
we are doing an application that uses play 2.6.2, scala 2.11, and Gradle 4.3.1.
when i am trying to build gradle based play application using “gradlew runPlayBinary”, I am getting
the below exception,
“Failed to run Play
org.gradle.internal.UncheckedException: java.lang.NoSuchMethodException: play.core.server.DevServerStart$.mainDevHttpMode(play.core.BuildLink, play.core.BuildDocHandler, int, java.lang.String)
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:63)
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:40)
at org.gradle.scala.internal.reflect.ScalaMethod.getMethod(ScalaMethod.java:43)
at org.gradle.scala.internal.reflect.ScalaMethod.(ScalaMethod.java:32)
at org.gradle.scala.internal.reflect.ScalaMethod.(ScalaMethod.java:36)
at org.gradle.scala.internal.reflect.ScalaReflectionUtil.scalaMethod(ScalaReflectionUtil.java:21)”
While surfing i found that in scala 2.11 the DevServerStart$.mainDevHttpMode method accpets 3 pamaeters.
Scal 2.10 alone accepts 4 parameters. I got stuck here. Please provide any solution to overcome this error.
Here is the build.gradle file,
"plugins {
id 'play’
id ‘idea’
}
task wrapper(type: Wrapper) {
gradleVersion = ‘4.3.1’
}
repositories {
jcenter()
maven {
name "typesafe-maven-release"
url “https://repo.typesafe.com/typesafe/maven-releases”
}
ivy {
name "typesafe-ivy-release"
url "https://repo.typesafe.com/typesafe/ivy-releases"
layout “ivy”
}
}
model {
components {
play {
platform play: ‘2.6.2’, scala: ‘2.11’, java: '1.8’
injectedRoutesGenerator = true
sources {
twirlTemplates {
defaultImports = TwirlImports.JAVA
}
}
}
}
}"