Skip to content

Commit

Permalink
feat: version 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
patsta32 committed Feb 11, 2022
1 parent 2578fd6 commit b1b09c9
Show file tree
Hide file tree
Showing 63 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .bsp/sbt.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"sbt","version":"1.4.0","bspVersion":"2.0.0-M5","languages":["scala"],"argv":["/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java","-Xms100m","-Xmx100m","-classpath","/Users/patrickstadler/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins/Scala/launcher/sbt-launch.jar","xsbt.boot.Boot","-bsp"]}
{"name":"sbt","version":"1.5.0","bspVersion":"2.0.0-M5","languages":["scala"],"argv":["/Users/patrick/Library/Java/JavaVirtualMachines/azul-11.0.13-1/Contents/Home/bin/java","-Xms100m","-Xmx100m","-classpath","/Users/patrick/Library/Application Support/JetBrains/IntelliJIdea2021.3/plugins/Scala/launcher/sbt-launch.jar","xsbt.boot.Boot","-bsp","--sbt-launch-jar=/Users/patrick/Library/Application%20Support/JetBrains/IntelliJIdea2021.3/plugins/Scala/launcher/sbt-launch.jar"]}
Empty file modified .gitconfig
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .scalafmt.conf
100644 → 100755
Empty file.
36 changes: 18 additions & 18 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sbt.{ Def, _ }
//settings

name := """scala-utils"""
val releaseVersion = "1.4.4"
val releaseVersion = "1.5.1"

val token = sys.env.getOrElse("GITHUB_TOKEN", "")

Expand All @@ -24,13 +24,13 @@ val defaultProjectSettings = Seq(
organization := "de.innfactory.scala-utils",
version := releaseVersion,
githubOwner := "innFactory",
githubSettings
)

) ++ githubSettings

val sharedSettings = defaultProjectSettings

val firebaseAdmin = "com.google.firebase" % "firebase-admin" % "7.2.0"
val nimbusJoseJwt = "com.nimbusds" % "nimbus-jose-jwt" % "9.0.1"
val firebaseAdmin = "com.google.firebase" % "firebase-admin" % "8.1.0"
val nimbusJoseJwt = "com.nimbusds" % "nimbus-jose-jwt" % "9.15.2"

lazy val utilAuth = (project in file("util-auth"))
.settings(
Expand Down Expand Up @@ -86,27 +86,27 @@ lazy val utilImplicits = (project in file("util-implicits")).settings(
val slick = "com.typesafe.slick" %% "slick" % "3.3.3"
val slickCodegen = "com.typesafe.slick" %% "slick-codegen" % "3.3.3"
val slickHikaricp = "com.typesafe.slick" %% "slick-hikaricp" % "3.3.3"
val hikariCP = "com.zaxxer" % "HikariCP" % "3.4.5"
val slickPg = "com.github.tminglei" %% "slick-pg" % "0.19.7"
val slickPgPlayJson = "com.github.tminglei" %% "slick-pg_play-json" % "0.19.7"
val hikariCP = "com.zaxxer" % "HikariCP" % "5.0.1"
val slickPg = "com.github.tminglei" %% "slick-pg" % "0.20.2"
val slickPgPlayJson = "com.github.tminglei" %% "slick-pg_play-json" % "0.20.2"
val slickJodaMapper = "com.github.tototoshi" %% "slick-joda-mapper" % "2.4.2"
val flyWayCore = "org.flywaydb" % "flyway-core" % "7.1.1"
val joda = "joda-time" % "joda-time" % "2.10.6"
val flyWayCore = "org.flywaydb" % "flyway-core" % "8.4.1"
val joda = "joda-time" % "joda-time" % "2.10.13"

val typesafePlay = "com.typesafe.play" %% "play" % "2.8.3"
val playJson = "com.typesafe.play" %% "play-json" % "2.9.1"
val typesafePlay = "com.typesafe.play" %% "play" % "2.8.13"
val playJson = "com.typesafe.play" %% "play-json" % "2.9.2"

val scalaOpencensus = "com.github.sebruck" %% "opencensus-scala-core" % "0.7.2"
val cats = "org.typelevel" %% "cats-core" % "2.2.0-RC1"
val cats = "org.typelevel" %% "cats-core" % "2.7.0"

val googleCloudLogger = "com.google.cloud" % "google-cloud-logging-logback" % "0.120.0-alpha"
val googleCloudLogging = "com.google.cloud" % "google-cloud-logging" % "2.1.3"
val googleCloudLogging = "com.google.cloud" % "google-cloud-logging" % "3.5.1"
val javaxactiviation = "javax.activation" % "activation" % "1.1.1"

val sl4j = "org.slf4j" % "slf4j-api" % "1.7.30"
val sharedDeps = "com.google.cloud" % "google-cloud-shared-dependencies" % "0.18.0"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.3"
val logbackCore = "ch.qos.logback" % "logback-core" % "1.2.3"
val sl4j = "org.slf4j" % "slf4j-api" % "1.7.32"
val sharedDeps = "com.google.cloud" % "google-cloud-shared-dependencies" % "2.5.1"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.10"
val logbackCore = "ch.qos.logback" % "logback-core" % "1.2.10"


lazy val play = (project in file("util-play"))
Expand Down
Empty file modified project/build.properties
100644 → 100755
Empty file.
Empty file modified project/plugins.sbt
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified util-play/conf/application.conf
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion util-play/src/main/scala/de/innfactory/play/controller/BaseController.scala
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class BaseController(implicit cc: ControllerComponents, ec: ExecutionCo

def mapToResult(value: ResultStatus)(implicit ec: ExecutionContext): play.api.mvc.Result =
value match {
case e: ErrorResult => MvcResults.Status(e.statusCode)(ErrorResponse.fromMessage(e.message))
case e: ErrorResult => MvcResults.Status(e.statusCode)(ErrorResponse.fromMessage(e.message, e.additionalInfoErrorCode))
case _ => MvcResults.Status(400)("")
}

Expand Down
10 changes: 5 additions & 5 deletions util-play/src/main/scala/de/innfactory/play/controller/ErrorResponse.scala
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package de.innfactory.play.controller
import play.api.libs.json.{JsValue, Json}
import play.api.mvc.{AnyContent, Request}

case class ErrorResponse(message: String) {
case class ErrorResponse(message: String, errorCode: Option[String] = None) {
def toJson: JsValue = Json.toJson(this)(ErrorResponse.writes)
}

Expand All @@ -12,11 +12,11 @@ object ErrorResponse {
implicit val reads = Json.reads[ErrorResponse]
implicit val writes = Json.writes[ErrorResponse]

def fromRequest(message: String)(implicit request: Request[AnyContent]) =
Json.toJson(ErrorResponse(message))
def fromRequest(message: String, errorCode: Option[String] = None)(implicit request: Request[AnyContent]) =
Json.toJson(ErrorResponse(message, errorCode))

def fromMessage(message: String) =
Json.toJson(ErrorResponse(message))
def fromMessage(message: String, errorCode: Option[String] = None) =
Json.toJson(ErrorResponse(message, errorCode))

}

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit b1b09c9

Please sign in to comment.