I am using postgresql 9.1-901.jdbc4 in my project and I configured it as follows:
Build.scala:
import sbt._ import Keys._ import PlayProject._ object ApplicationBuild extends Build { val appName = "project_name" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq( // Add your project dependencies here, "postgresql" % "postgresql" % "9.1-901.jdbc4" ) val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings( // Add your own project settings here ) }
application.conf
db.default.driver=org.postgresql.Driver db.default.url="jdbc:postgresql://localhost:5432/project_name" db.default.user=postgres db.default.password=mypw db.default.partitionCount=1 db.default.maxConnectionsPerPartition=5 db.default.minConnectionsPerPartition=5
Then I used the following combination when using it:
play clean play compile play eclipsify play ~run
Alternatively, you can enter play dependencies after that to see if it is loaded correctly.
source share