Hi I have been trying to use the play frame work on my windows laptop and used the command line new play project to create a scala playframework project however I get this error:
[error] sbt.librarymanagement.ResolveException: Error downloading play:sbt-plugin;sbtVersion=1.0;scalaVersion=2.12:2.0
[error] Not found
Here is the build file, I have not touched it:
import sbt._
import Keys._
import PlayProject._
object ApplicationBuild extends Build {
val appName = "LMDashboard"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq( // Add your project dependencies here, )
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
// Add your own project settings here ) }
here is the plugin sbt file:
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0")
Version 2.0 of the Play plugin for sbt was not released for sbt 1.0. You need to upgrade to a newer version of Play or stick with a pre-1.0 version of sbt, probably 0.13.
i upgraded the play plugin and now i get this error:
sbt.librarymanagement.ResolveException: Error downloading play:sbt-plugin;sbtVersion=1.0;scalaVersion=2.12:2.6.0
That is the wrong artifact. Please refer to the manual: playframework.com/documentation/2.6.x/…
What do you mean that is the wrong artifact I have changed only the sbt plug in version I have not touched the scala version that documentation does not explain why the sbt version seems to be adding its self onto the scalaVersion
What I mean is that it's... the wrong artifact. The group id should be "com.typesafe.play", not "play". Regarding the sbt version being added to the artifact name: that's the normal behaviour when you add an sbt plugin to your build. The idea is that when a new, incompatible version of sbt is released, you can release separate versions of the plugin for the different sbt versions without getting them mixed up.