Using SORM with Play Framework 2.3.8

I will familiarize myself with Introducing the video in the Play Framework and, but I am stuck in creating a database object using SORM because the import failed.

I tried adding dependencies to plugins.sbt and restarted the activator, but it seems that the activator cannot find the dependencies, and I get and I get an unresolved error :

 addSbtPlugin("org.sorm-framework" % "sorm" % "0.3.14") addSbtPlugin("com.h2database" % "h2" % "1.4.181") 

I got versions from the Yvis repository . I also tried other versions, no luck.

+6
source share
2 answers

should be added as

 libraryDependencies += "org.sorm-framework" % "sorm" % "0.3.16" 

in build.sbt ,

but not like

 addSbtPlugin("org.sorm-framework" % "sorm" % "0.3.14") 

in project/plugins.sbt

+9
source

good jilen answer; Also, it might be a good idea to restart sbt after changing build.sbt, for example. (in the root directory of the project):

 $ sbt .... $ compile ... $ eclipse 

(the last two apply to Eclipse users more - and then restart Eclipse to make sure the changes are selected (Refresh / Clean may not be enough)).

+3
source

Source: https://habr.com/ru/post/983088/


All Articles