Skip to content

Commit

Permalink
Update mariadb-java-client to 2.7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
scala-steward committed Aug 25, 2023
1 parent 1c63d3d commit 3e59448
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -164,34 +164,37 @@ def removeDependencies(groups: String*)(xml: scala.xml.Node) = {
}

def webpackSettings(project: String) = List(
resourceGenerators in Compile += Def.task {
import scala.sys.process._
val streams0 = streams.value
val webpackOutputDir: File = (resourceManaged in Compile).value / "public" / project
if (devMode.value) {
streams0.log.warn(s"Skipping webpack resource generation.")
Nil
} else {
def listFiles(dir: File): Seq[File] =
IO.listFiles(dir)
.flatMap(
f =>
if (f.isDirectory) listFiles(f)
else Seq(f)
)
val logger = new ProcessLogger {
override def err(s: => String): Unit = streams0.log.info(s"ERR, $s")
override def buffer[T](f: => T): T = f
override def out(s: => String): Unit = streams0.log.info(s)
resourceGenerators in Compile += Def
.task {
import scala.sys.process._
val streams0 = streams.value
val webpackOutputDir: File = (resourceManaged in Compile).value / "public" / project
if (devMode.value) {
streams0.log.warn(s"Skipping webpack resource generation.")
Nil
} else {
def listFiles(dir: File): Seq[File] =
IO.listFiles(dir)
.flatMap(
f =>
if (f.isDirectory) listFiles(f)
else Seq(f)
)
val logger = new ProcessLogger {
override def err(s: => String): Unit = streams0.log.info(s"ERR, $s")
override def buffer[T](f: => T): T = f
override def out(s: => String): Unit = streams0.log.info(s)
}
logger.out(s"Generating UI assets to $webpackOutputDir...")
assert(
s"node node_modules/webpack/bin/webpack.js --output-path $webpackOutputDir --bail --project $project" ! logger == 0,
"webpack failed"
)
listFiles(webpackOutputDir)
}
logger.out(s"Generating UI assets to $webpackOutputDir...")
assert(
s"node node_modules/webpack/bin/webpack.js --output-path $webpackOutputDir --bail --project $project" ! logger == 0,
"webpack failed"
)
listFiles(webpackOutputDir)
}
}.dependsOn(cuttle / yarnInstall).taskValue
.dependsOn(cuttle / yarnInstall)
.taskValue
)

lazy val localdb = {
Expand Down Expand Up @@ -225,7 +228,7 @@ lazy val cuttle =
"org.typelevel" %% "cats-core" % catsCore,
"codes.reactive" %% "scala-time" % "0.4.2",
"com.zaxxer" % "nuprocess" % "1.1.3",
"org.mariadb.jdbc" % "mariadb-java-client" % "2.7.0"
"org.mariadb.jdbc" % "mariadb-java-client" % "2.7.10"
),
libraryDependencies ++= Seq(
"org.tpolecat" %% "doobie-core",
Expand Down

0 comments on commit 3e59448

Please sign in to comment.