Warm tip: This article is reproduced from serverfault.com, please click

Scala Play Project Build

发布于 2020-12-01 18:30:35

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")
Questioner
DevyDev
Viewed
0
Matthias Berndt 2020-12-02 08:28:25

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.