2025-06-21 08:20:50 +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.
|
|
|
|
|
*/
|
|
|
|
|
|
2023-05-03 04:11:09 +08:00
|
|
|
plugins {
|
|
|
|
|
id "java"
|
2024-06-26 17:47:51 +08:00
|
|
|
id "org.springframework.boot.docker-test"
|
2023-05-03 04:11:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
description = "Spring Boot Data MongoDB smoke test"
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2025-07-23 01:02:07 +08:00
|
|
|
implementation(project(":starter:spring-boot-starter-data-mongodb"))
|
|
|
|
|
implementation(project(":starter:spring-boot-starter-data-mongodb-reactive"))
|
|
|
|
|
|
2025-07-09 06:58:43 +08:00
|
|
|
dockerTestImplementation(project(":core:spring-boot-testcontainers"))
|
2025-10-28 16:41:22 +08:00
|
|
|
dockerTestImplementation(project(":starter:spring-boot-starter-data-mongodb-test"))
|
|
|
|
|
dockerTestImplementation(project(":starter:spring-boot-starter-data-mongodb-reactive-test"))
|
2025-09-09 23:17:35 +08:00
|
|
|
dockerTestImplementation(project(":test-support:spring-boot-docker-test-support"))
|
2025-10-16 04:56:36 +08:00
|
|
|
dockerTestImplementation("org.testcontainers:testcontainers-junit-jupiter")
|
|
|
|
|
dockerTestImplementation("org.testcontainers:testcontainers-mongodb")
|
2025-10-16 15:25:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.named("compileTestJava") {
|
|
|
|
|
options.nullability.checking = "tests"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.named("compileDockerTestJava") {
|
|
|
|
|
options.nullability.checking = "tests"
|
|
|
|
|
}
|