user266003
user266003

Reputation:

This project uses Play 2.1.2! -- it is like an error but it compiles

I have a Play Framework app and here is a file project/plugins.sbt

logLevel := Level.Warn

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

addSbtPlugin("play" % "sbt-plugin" % "2.1.2")

When I say play I get the following output:

[info] Loading global plugins from /home/me/.sbt/plugins
[info] Updating {file:/home/me/.sbt/plugins/}default-c82e21...
[info] Resolving org.scala-sbt#precompiled-2_10_0;0.12.2 ...
[info] Done updating.
[info] Loading project definition from /home/me/project123/project

This project uses Play 2.1.2!
Update the Play sbt-plugin version to 2.1.0 (usually in project/plugins.sbt)

[info] Set current project to project123 (in build file:/home/me/project123/)
       _            _
 _ __ | | __ _ _  _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__ (_)
|_|            |__/

play! 2.1.2 (using Java 1.7.0_25 and Scala 2.10.0), http://www.playframework.org

> Type "help play" or "license" for more information.
> Type "exit" or use Ctrl+D to leave this console.

[project123] $

What do I do about him saying

This project uses Play 2.1.2!
    Update the Play sbt-plugin version to 2.1.0 (usually in project/plugins.sbt) 

?

I already did gen-idea and compile but nothing changes.

Upvotes: 1

Views: 400

Answers (1)

Andrew Jones
Andrew Jones

Reputation: 1382

The message gives you a clear answer, but it may be hard to understand if you haven't encountered it before.

The message is suggesting that you should change your sbt-plugin version to 2.1.0. The final line of your plugins.sbt file should be replaced with the below line.

addSbtPlugin("play" % "sbt-plugin" % "2.1.0")

Upvotes: 2

Related Questions