Skip to content

Commit

Permalink
fix: action 실행중 flywayMigrate task env 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJu committed Apr 2, 2024
1 parent 9fe8133 commit 341a11a
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 341a11a

Please sign in to comment.