this is my build.sbt file and I am getting error about "PlayScala" cannot resolve
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.19") this is already added in plugin.sbt and there's no issue in the version
lazy val root = (project in file("."))
.enablePlugins(PlayScala)
.settings(
name := """play-scala-hello-world-tutorial""",
organization := "com.example",
version := "1.0-SNAPSHOT",
scalaVersion := "2.13.10",
libraryDependencies ++= Seq(
"com.google.inject" % "guice" % "5.1.1",
"org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test
),
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-xfatal-warnings"
)
)
https://www.playframework.com/getting-started
project/build.properties.Use sbt 1.7.2-
If you're using sbt 1.7.3+ (1.8.x) you should add the following to
project/plugins.sbthttps://github.com/playframework/playframework/issues/11522
https://mvnrepository.com/artifact/com.google.inject/guice
5.1.1 is snapshot
https://oss.sonatype.org/content/repositories/snapshots/com/google/inject/guice/
https://oss.sonatype.org/content/groups/public/com/google/inject/guice/
JDK 8 is default. JDK 11 is supported since Play 2.8.x
https://www.playframework.com/documentation/2.8.19/Highlights28#Java-11-support
In JDK 17 some adjustments are needed
https://github.com/playframework/playframework/releases/2.8.15
But you're already using the latest (and even fresher) Guice so this should be ok.
NoSuchMethodError with Play scala.tools.nsc.Settings.bootclasspath()
(but this is at runtime, not build time).