Browse Source

update play2-scala-anorm (#5987)

* Bump play2-scala-anorm

bump docker image, Scala, sbt, play2 and dependencies and fix warnings

* bump docker image version

bump docker image for play2-scala-anorm-netty

* update docker images for akka-http

use latest docker image hseeberger/scala-sbt:8u265_1.3.13_2.13.3

Co-authored-by: vbodnart <[email protected]>
Vladimir Bodnartchouk 5 years ago
parent
commit
58010003a5

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-anorm-netty.dockerfile

@@ -1,4 +1,4 @@
-FROM hseeberger/scala-sbt:8u242_1.3.8_2.13.1
+FROM hseeberger/scala-sbt:8u265_1.3.13_2.13.3
 WORKDIR /play2
 COPY play2-scala-anorm .
 

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-anorm.dockerfile

@@ -1,4 +1,4 @@
-FROM hseeberger/scala-sbt:8u242_1.3.8_2.13.1
+FROM hseeberger/scala-sbt:8u265_1.3.13_2.13.3
 WORKDIR /play2
 COPY play2-scala-anorm .
 

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-anorm/app/startup/StartupModule.scala

@@ -5,6 +5,6 @@ import play.api.inject._
 
 class StartupModule extends Module {
   def bindings(environment: Environment, configuration: Configuration) = Seq(
-    bind[Startup].toSelf.eagerly
+    bind[Startup].toSelf.eagerly()
   )
 }

+ 3 - 3
frameworks/Scala/play2-scala/play2-scala-anorm/build.sbt

@@ -4,11 +4,11 @@ version := "1.0-SNAPSHOT"
 
 lazy val root = (project in file(".")).enablePlugins(PlayScala, PlayNettyServer).disablePlugins(PlayFilters)
 
-scalaVersion := "2.13.1"
+scalaVersion := "2.13.3"
 
 libraryDependencies ++= Seq(
   guice,
   jdbc,
-  "org.playframework.anorm" %% "anorm" % "2.6.5",
-  "mysql" % "mysql-connector-java" % "8.0.19"
+  "org.playframework.anorm" %% "anorm" % "2.6.7",
+  "mysql" % "mysql-connector-java" % "8.0.21"
 )

+ 2 - 2
frameworks/Scala/play2-scala/play2-scala-anorm/conf/routes

@@ -2,7 +2,7 @@
 # This file defines all application routes (Higher priority routes first)
 # ~~~~
 
-GET     /db                             controllers.Application.db
+GET     /db                             controllers.Application.db()
 GET     /queries                        controllers.Application.queries(queries: String ?= "1")
-GET     /fortunes                       controllers.Application.fortunes
+GET     /fortunes                       controllers.Application.fortunes()
 GET     /update                         controllers.Application.update(queries: String ?= "1")

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-anorm/project/build.properties

@@ -1 +1 @@
-sbt.version=1.3.8
+sbt.version=1.3.13

+ 1 - 1
frameworks/Scala/play2-scala/play2-scala-anorm/project/plugins.sbt

@@ -1 +1 @@
-addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.1")
+addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.2")