Skip to content

Commit

Permalink
refactor(komga): replace gradle deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Oct 4, 2023
1 parent 165ba2a commit c057d09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions komga/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ sourceSets {
}

val dbSqlite = mapOf(
"url" to "jdbc:sqlite:${project.buildDir}/generated/flyway/database.sqlite",
"url" to "jdbc:sqlite:${project.layout.buildDirectory.get()}/generated/flyway/database.sqlite",
)
val migrationDirsSqlite = listOf(
"$projectDir/src/flyway/resources/db/migration/sqlite",
Expand All @@ -274,10 +274,10 @@ tasks.flywayMigrate {
// in order to include the Java migrations, flywayClasses must be run before flywayMigrate
dependsOn("flywayClasses")
migrationDirsSqlite.forEach { inputs.dir(it) }
outputs.dir("${project.buildDir}/generated/flyway")
outputs.dir("${project.layout.buildDirectory.get()}/generated/flyway")
doFirst {
delete(outputs.files)
mkdir("${project.buildDir}/generated/flyway")
mkdir("${project.layout.buildDirectory.get()}/generated/flyway")
}
mixed = true
}
Expand Down

0 comments on commit c057d09

Please sign in to comment.