Skip to content

Commit

Permalink
Merge pull request #4 from NAGAZA-Team/fix/flyway
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJu authored Apr 2, 2024
2 parents 7aec1ce + 341a11a commit e299943
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ jib {
}
}

flyway {
url = env.MYSQL_URL.value + "?permitMysqlScheme=true"
user = env.MYSQL_USERNAME.value
password = env.MYSQL_PASSWORD.value
locations = arrayOf("classpath:db/migration")
driver = "com.mysql.cj.jdbc.Driver"
}

tasks.withType<FlywayMigrateTask> {
enabled = env.isPresent("MYSQL_URL")

dependsOn("classes")

url = env.fetchOrNull("MYSQL_URL")
user = env.fetchOrNull("MYSQL_USERNAME")
password = env.fetchOrNull("MYSQL_PASSWORD")
locations = arrayOf("classpath:db/migration")
driver = "com.mysql.cj.jdbc.Driver"
}

0 comments on commit e299943

Please sign in to comment.