Do not add anything to plugins.sbt following the official documentation: https://github.com/schaloner/deadbolt-2/tree/master
Add to build.sbt (without , and with one blank line )
resolvers += Resolver.url("Objectify Play Repository", url("http://schaloner.github.com/releases/"))(Resolver.ivyStylePatterns) resolvers += Resolver.url("Objectify Play Snapshot Repository", url("http://schaloner.github.com/snapshots/"))(Resolver.ivyStylePatterns)
AND
libraryDependencies ++= Seq( ... "be.objectify" %% "deadbolt-java" % "2.2-RC4", "be.objectify" %% "deadbolt-scala" % "2.2-RC2" )
While writing im using play 2.2.1 and my build.sbt:
name := "crud-test" version := "1.0-SNAPSHOT" resolvers += Resolver.url("Objectify Play Repository", url("http://schaloner.github.com/releases/"))(Resolver.ivyStylePatterns) resolvers += Resolver.url("Objectify Play Snapshot Repository", url("http://schaloner.github.com/snapshots/"))(Resolver.ivyStylePatterns) libraryDependencies ++= Seq( javaJdbc, javaJpa, "org.postgresql" % "postgresql" % "9.2-1003-jdbc4", "org.hibernate" % "hibernate-entitymanager" % "3.6.9.Final", "org.webjars" % "webjars-play_2.10" % "2.2.1", "org.webjars" % "bootstrap" % "3.1.0", "be.objectify" %% "deadbolt-java" % "2.2-RC4", "be.objectify" %% "deadbolt-scala" % "2.2-RC2" ) play.Project.playJavaSettings
After running play reload and play eclipse from the console:
... [info] [SUCCESSFUL ] [info] Done updating. ...
EDIT: Remember to do play reload and play eclipse after adding new dependencies to build.sbt
EDIT2: I assume that after Deadbolt you want to use an authentication system because Deadbolt does not provide authentication. The playback system can be checked at: https://github.com/joscha/play-authenticate .
With DeadBolt and play-authenticate system mine build.sbt:
name := "crud-test" version := "1.0-SNAPSHOT" resolvers += Resolver.url("Objectify Play Repository", url("http://schaloner.github.com/releases/"))(Resolver.ivyStylePatterns) resolvers += Resolver.url("Objectify Play Snapshot Repository", url("http://schaloner.github.com/snapshots/"))(Resolver.ivyStylePatterns) resolvers += Resolver.url("play-easymail (release)", url("http://joscha.github.com/play-easymail/repo/releases/"))(Resolver.ivyStylePatterns) resolvers += Resolver.url("play-easymail (snapshot)", url("http://joscha.github.com/play-easymail/repo/snapshots/"))(Resolver.ivyStylePatterns) resolvers += Resolver.url("play-authenticate (release)", url("http://joscha.github.com/play-authenticate/repo/releases/"))(Resolver.ivyStylePatterns) resolvers += Resolver.url("play-authenticate (snapshot)", url("http://joscha.github.com/play-authenticate/repo/snapshots/"))(Resolver.ivyStylePatterns) libraryDependencies ++= Seq( javaJdbc, javaJpa, "org.postgresql" % "postgresql" % "9.2-1003-jdbc4", "org.hibernate" % "hibernate-entitymanager" % "3.6.9.Final", "org.webjars" % "webjars-play_2.10" % "2.2.1" exclude("org.scala-lang", "scala-library"), "org.webjars" % "bootstrap" % "3.1.0", "be.objectify" %% "deadbolt-java" % "2.2-RC4", "be.objectify" %% "deadbolt-scala" % "2.2-RC2", "com.feth" %% "play-authenticate" % "0.5.0-SNAPSHOT" ) play.Project.playJavaSettings