2025-03-21 15:49:18 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2012-present the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the License);
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
id "java-library"
|
|
|
|
|
id "org.springframework.boot.auto-configuration"
|
|
|
|
|
id "org.springframework.boot.configuration-properties"
|
|
|
|
|
id "org.springframework.boot.deployed"
|
2025-05-19 21:41:29 +08:00
|
|
|
id "org.springframework.boot.docker-test"
|
2025-03-21 15:49:18 +08:00
|
|
|
id "org.springframework.boot.optional-dependencies"
|
2025-09-09 23:17:35 +08:00
|
|
|
id "org.springframework.boot.test-auto-configuration"
|
2025-03-21 15:49:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
description = "Spring Boot Flyway"
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2025-07-09 06:58:43 +08:00
|
|
|
api(project(":core:spring-boot"))
|
|
|
|
|
api(project(":module:spring-boot-jdbc"))
|
2025-03-21 15:49:18 +08:00
|
|
|
api("org.flywaydb:flyway-core")
|
|
|
|
|
|
2025-07-09 06:58:43 +08:00
|
|
|
optional(project(":core:spring-boot-autoconfigure"))
|
|
|
|
|
optional(project(":core:spring-boot-docker-compose"))
|
|
|
|
|
optional(project(":core:spring-boot-testcontainers"))
|
2025-09-28 09:44:50 +08:00
|
|
|
optional(project(":core:spring-boot-test-autoconfigure"))
|
2025-07-09 06:58:43 +08:00
|
|
|
optional(project(":module:spring-boot-actuator-autoconfigure"))
|
2025-03-21 15:49:18 +08:00
|
|
|
optional("org.flywaydb:flyway-database-oracle")
|
|
|
|
|
optional("org.flywaydb:flyway-database-postgresql")
|
|
|
|
|
optional("org.flywaydb:flyway-sqlserver")
|
2025-10-16 04:56:36 +08:00
|
|
|
optional("org.testcontainers:testcontainers-jdbc")
|
2025-05-19 21:41:29 +08:00
|
|
|
|
2025-07-09 06:58:43 +08:00
|
|
|
dockerTestImplementation(project(":core:spring-boot-test"))
|
|
|
|
|
dockerTestImplementation(project(":test-support:spring-boot-docker-test-support"))
|
|
|
|
|
dockerTestImplementation(testFixtures(project(":core:spring-boot-docker-compose")))
|
2025-10-16 04:56:36 +08:00
|
|
|
dockerTestImplementation("org.testcontainers:testcontainers-junit-jupiter")
|
|
|
|
|
dockerTestImplementation("org.testcontainers:testcontainers-postgresql")
|
2025-05-19 21:41:29 +08:00
|
|
|
dockerTestRuntimeOnly("org.postgresql:postgresql")
|
2025-03-21 15:49:18 +08:00
|
|
|
|
2025-07-09 06:58:43 +08:00
|
|
|
testImplementation(project(":core:spring-boot-test"))
|
|
|
|
|
testImplementation(project(":module:spring-boot-jooq"))
|
|
|
|
|
testImplementation(project(":test-support:spring-boot-test-support"))
|
2025-09-09 23:17:35 +08:00
|
|
|
testImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))
|
2025-03-21 15:49:18 +08:00
|
|
|
testImplementation("jakarta.persistence:jakarta.persistence-api")
|
|
|
|
|
testImplementation("org.hibernate.orm:hibernate-core")
|
|
|
|
|
testImplementation("org.hsqldb:hsqldb")
|
|
|
|
|
testImplementation("org.postgresql:postgresql")
|
|
|
|
|
testImplementation("org.springframework:spring-orm")
|
|
|
|
|
|
2025-09-19 20:53:53 +08:00
|
|
|
testCompileOnly("org.checkerframework:checker-qual")
|
|
|
|
|
|
2025-03-21 15:49:18 +08:00
|
|
|
testRuntimeOnly("ch.qos.logback:logback-classic")
|
|
|
|
|
testRuntimeOnly("com.h2database:h2")
|
|
|
|
|
testRuntimeOnly("com.zaxxer:HikariCP")
|
|
|
|
|
testRuntimeOnly("org.flywaydb:flyway-database-hsqldb")
|
|
|
|
|
}
|
2025-09-19 20:53:53 +08:00
|
|
|
|
|
|
|
|
tasks.named("compileTestJava") {
|
|
|
|
|
options.nullability.checking = "tests"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.named("compileDockerTestJava") {
|
|
|
|
|
options.nullability.checking = "tests"
|
|
|
|
|
}
|