Skip to content

Commit

Permalink
Update flyway-sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
kxbmap committed Nov 19, 2024
1 parent bb94377 commit 58a7c50
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions codegen/src/sbt-test/it-flyway-sbt/managed/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ Compile / jooqCodegen := (Compile / jooqCodegen).dependsOn(migration / flywayMig

jooqCodegenConfig := file("jooq-codegen.xml")

libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.v1.version") % JooqCodegen
libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.version") % JooqCodegen

lazy val migration = project
.enablePlugins(FlywayPlugin)
.settings(
flywayUrl := "jdbc:h2:./test",
flywaySchemas := Seq("PUBLIC"),
flywayLocations := Seq("classpath:db/migration"),
libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.v1.version") % Runtime
flywayCleanDisabled := false,
libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.version") % Runtime
)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addSbtPlugin("com.github.kxbmap" % "sbt-jooq-codegen" % sys.props("scripted.plugin.version"))

addSbtPlugin("io.github.davidmweber" % "flyway-sbt" % sys.props("scripted.flywaysbt.version"))
addSbtPlugin("com.github.sbt" % "flyway-sbt" % sys.props("scripted.flywaysbt.version"))
5 changes: 3 additions & 2 deletions codegen/src/sbt-test/it-flyway-sbt/unmanaged/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ Compile / jooqCodegen := (Compile / jooqCodegen).dependsOn(migration / flywayMig

jooqCodegenConfig := file("jooq-codegen.xml")

libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.v1.version") % JooqCodegen
libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.version") % JooqCodegen

lazy val migration = project
.enablePlugins(FlywayPlugin)
.settings(
flywayUrl := "jdbc:h2:./test",
flywaySchemas := Seq("PUBLIC"),
flywayLocations := Seq("classpath:db/migration"),
libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.v1.version") % Runtime
flywayCleanDisabled := false,
libraryDependencies += "com.h2database" % "h2" % sys.props("scripted.h2.version") % Runtime
)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addSbtPlugin("com.github.kxbmap" % "sbt-jooq-codegen" % sys.props("scripted.plugin.version"))

addSbtPlugin("io.github.davidmweber" % "flyway-sbt" % sys.props("scripted.flywaysbt.version"))
addSbtPlugin("com.github.sbt" % "flyway-sbt" % sys.props("scripted.flywaysbt.version"))
2 changes: 1 addition & 1 deletion project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object Versions {

final val javaxAnnotationApiVersion = "1.3.2"

final val flywaySbtVersion = "7.4.0"
final val flywaySbtVersion = "10.21.0"

final val scalaTestVersion = "3.2.19"

Expand Down

0 comments on commit 58a7c50

Please sign in to comment.