Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deprecation warnings #2

Open
xuwei-k opened this issue Jun 18, 2019 · 0 comments
Open

fix deprecation warnings #2

xuwei-k opened this issue Jun 18, 2019 · 0 comments

Comments

@xuwei-k
Copy link
Member

xuwei-k commented Jun 18, 2019

https://travis-ci.org/unfiltered/unfiltered-slick.g8/jobs/547043717

[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/Server.scala:11:10: parameter value svr in anonymous function is never used
[info] [warn]     }, { svr =>
[info] [warn]          ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/DogRun.scala:18:49: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       Await.result(SlickSetup.db.run(Breeds.ofId(id).result.headOption), 1.seconds),
[info] [warn]                                                 ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/DogRun.scala:51:38: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]           Await.result(db.run(Breeds.forInsert += name), 1.seconds)
[info] [warn]                                      ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/DogRun.scala:67:36: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]           Await.result(db.run(Dogs.forInsert += (name -> breed.id)), 1.seconds)
[info] [warn]                                    ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/DogRun.scala:93:56: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]         for (breed <- Await.result(db.run(Breeds.sortBy(_.name).result), 1.seconds))
[info] [warn]                                                        ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/DogRun.scala:103:67: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]         for (dog <- Await.result(db.run(Dogs.ofBreed(breed).sortBy(_.name).result), 1.seconds))
[info] [warn]                                                                   ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:28:25: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def id = column[Int]("ID", O.PrimaryKey, O.AutoInc)
[info] [warn]                         ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:29:30: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def name = column[String]("NAME")
[info] [warn]                              ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:30:30: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def breedId = column[Int]("BREED_ID")
[info] [warn]                              ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:31:13: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def * = (id, name, breedId) <> (Dog.tupled, Dog.unapply)
[info] [warn]             ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:32:21: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def forInsert = (name, breedId) <> (
[info] [warn]                     ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:38:25: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def id = column[Int]("ID", O.PrimaryKey, O.AutoInc)
[info] [warn]                         ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:39:30: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def name = column[String]("NAME")
[info] [warn]                              ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:40:13: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def * = (id, name) <> (Breed.tupled, Breed.unapply)
[info] [warn]             ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:48:12: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]   val db = Database.forDataSource(datasource, None)
[info] [warn]            ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:55:29: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       for (b <- Breeds if b.id === id)
[info] [warn]                             ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:55:36: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       for (b <- Breeds if b.id === id)
[info] [warn]                                    ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:55:32: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       for (b <- Breeds if b.id === id)
[info] [warn]                                ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:57:32: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def forInsert = Breeds.map { b => b.name }
[info] [warn]                                ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:62:27: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       for (d <- Dogs if d.breedId === breed.id)
[info] [warn]                           ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:62:45: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       for (d <- Dogs if d.breedId === breed.id)
[info] [warn]                                             ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:62:35: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       for (d <- Dogs if d.breedId === breed.id)
[info] [warn]                                   ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:65:30: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]     def forInsert = Dogs.map { d => (d.name, d.breedId) }
[info] [warn]                              ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:71:22: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       (Breeds.schema ++ Dogs.schema).create,
[info] [warn]                      ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:71:8: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       (Breeds.schema ++ Dogs.schema).create,
[info] [warn]        ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:71:25: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       (Breeds.schema ++ Dogs.schema).create,
[info] [warn]                         ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:72:14: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       Breeds.forInsert ++= Seq(
[info] [warn]              ^
[info] [warn] /tmp/sbt_65de80e3/scripted/src/main/scala/SlickSetup.scala:76:12: value H2Driver in package driver is deprecated (since 3.2): Use object `slick.jdbc.H2Profile` instead of `slick.driver.H2Driver`
[info] [warn]       Dogs.forInsert ++= Seq(
[info] [warn]            ^
[info] [warn] 28 warnings found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant