playframework - Where to find appDependencies in Play 2.0 application? It's already been set? if not how should I set it -


i tried in build.sbt:

val main = play.project("hello-play-java", "1.0-snapshot", seq("com.wordnik" %% "swagger-play2-utils" % "2.2.3")).settings(     // force compilation in java 1.7      javacoptions in compile ++= seq("-source", "1.7", "-target", "1.7") ) 

but compilation 'com.wordnik' %% 'swagger-play2-utils' % '2.2.3' not find error, randomly put since don't know it..

what version of play 2 using? mention build.sbt suggest play 2.2+, code snippet suggests play 2.0.x - 2.1.x (upgrading legacy project)?

when "not find error", if referring sbt not being able resolve 'swagger-play2-utils' % '2.2.3' because latest swagger dependency version available maven central 1.3.6.

for reference, here build configurations relevant play versions.

for play 2.2+:

build.sbt

import sbt.keys._  name := "hello-play-java"  version := "1.0-snapshot"  librarydependencies ++= seq(   javajdbc,   javaebean,   cache,   "com.wordnik" %% "swagger-play2-utils" % "1.3.6" )  javacoptions in compile ++= seq("-source", "1.7", "-target", "1.7")  play.project.playjavasettings 

for play 2.0.x - 2.1.x:

build.scala

object applicationbuild extends build {    val appname         = "hello-play-java"    val appversion      = "1.0-snapshot"    val appdependencies = seq(     javacore,     ...     "com.wordnik" %% "swagger-play2-utils" % "1.3.6"   )    val main = play.project(appname, appversion, appdependencies).settings(     javacoptions in compile ++= seq("-source", "1.7", "-target", "1.7"),     ... } 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -