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.
|
|
|
|
*/
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2022-07-20 19:57:17 +08:00
|
|
|
id "java-library"
|
|
|
|
id "org.jetbrains.kotlin.jvm"
|
2020-01-23 03:24:37 +08:00
|
|
|
id "org.springframework.boot.deployed"
|
2022-07-20 19:57:17 +08:00
|
|
|
id "org.springframework.boot.optional-dependencies"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-01-23 03:24:37 +08:00
|
|
|
description = "Spring Boot Test"
|
2020-01-10 21:48:43 +08:00
|
|
|
|
|
|
|
dependencies {
|
2025-07-09 06:58:43 +08:00
|
|
|
api(project(":core:spring-boot"))
|
2024-03-26 20:45:51 +08:00
|
|
|
api("org.springframework:spring-test")
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2025-09-27 09:57:06 +08:00
|
|
|
optional("tools.jackson.core:jackson-databind")
|
|
|
|
optional("com.google.code.gson:gson")
|
|
|
|
optional("com.jayway.jsonpath:json-path")
|
|
|
|
optional("jakarta.json.bind:jakarta.json.bind-api")
|
2021-11-13 01:54:32 +08:00
|
|
|
optional("jakarta.servlet:jakarta.servlet-api")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("junit:junit")
|
2025-10-01 02:36:52 +08:00
|
|
|
optional("io.projectreactor.netty:reactor-netty-http")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.assertj:assertj-core")
|
|
|
|
optional("org.hamcrest:hamcrest-core")
|
|
|
|
optional("org.hamcrest:hamcrest-library")
|
|
|
|
optional("org.junit.jupiter:junit-jupiter-api")
|
|
|
|
optional("org.mockito:mockito-core")
|
2025-10-02 08:07:17 +08:00
|
|
|
optional("org.seleniumhq.selenium:htmlunit3-driver") {
|
|
|
|
exclude(group: "com.sun.activation", module: "jakarta.activation")
|
|
|
|
}
|
|
|
|
optional("org.seleniumhq.selenium:selenium-api")
|
2025-09-27 09:57:06 +08:00
|
|
|
optional("org.skyscreamer:jsonassert")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.springframework:spring-web")
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2025-07-09 06:58:43 +08:00
|
|
|
testImplementation(project(":test-support:spring-boot-test-support"))
|
2025-03-11 20:50:09 +08:00
|
|
|
testImplementation("ch.qos.logback:logback-classic")
|
2025-09-25 23:11:07 +08:00
|
|
|
testImplementation("com.google.code.gson:gson")
|
2025-09-27 09:57:06 +08:00
|
|
|
testImplementation("org.eclipse:yasson")
|
2025-05-02 21:03:24 +08:00
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-stdlib")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.slf4j:slf4j-api")
|
|
|
|
testImplementation("org.spockframework:spock-core")
|
|
|
|
testImplementation("org.springframework:spring-webmvc")
|
|
|
|
testImplementation("org.testng:testng")
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2025-09-26 02:39:55 +08:00
|
|
|
testRuntimeOnly("org.aspectj:aspectjrt")
|
|
|
|
testRuntimeOnly("org.aspectj:aspectjweaver")
|
2020-01-23 06:09:17 +08:00
|
|
|
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
|
2020-01-21 04:27:47 +08:00
|
|
|
}
|
|
|
|
|
2025-09-09 21:51:19 +08:00
|
|
|
tasks.named("compileTestJava") {
|
|
|
|
options.nullability.checking = "tests"
|
|
|
|
}
|