Skip to content

Commit

Permalink
chore: flyway 추가 (#81)
Browse files Browse the repository at this point in the history
* chore: Flyway 의존성 추가

* chore: submodule에서 flyway 형상 관리

* chore: submodule update
  • Loading branch information
TaeyeonRoyce authored Oct 14, 2024
1 parent 602f94a commit ddc8bfd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ out/
.kotlin

src/main/resources/application*
src/main/resources/flyway/


### Fixture Monkey ###
.jqwik-database
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ dependencies {
implementation("com.linecorp.kotlin-jdsl:jpql-render:3.5.1")
implementation("com.linecorp.kotlin-jdsl:spring-data-jpa-support:3.5.1")

// flyway
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-mysql")
// Test
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
Expand Down Expand Up @@ -86,6 +89,7 @@ tasks.named<JavaCompile>("compileJava") {

tasks.named<Copy>("processResources") {
dependsOn("copySecret")
dependsOn("copyFlyway")
}

tasks.register("copySecret", Copy::class) {
Expand All @@ -94,6 +98,12 @@ tasks.register("copySecret", Copy::class) {
into("./src/main/resources/")
}

tasks.register("copyFlyway", Copy::class) {
from("./server-profile-submodule/flyway")
include("V*.sql")
into("./src/main/resources/flyway")
}

// Disable jar task
tasks.named("jar") {
enabled = false
Expand Down
2 changes: 1 addition & 1 deletion server-profile-submodule

0 comments on commit ddc8bfd

Please sign in to comment.