2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2020-01-23 03:24:37 +08:00
|
|
|
id "java-library"
|
|
|
|
id "org.springframework.boot.deployed"
|
2024-06-26 01:06:01 +08:00
|
|
|
id "org.springframework.boot.docker-test"
|
2020-01-23 03:24:37 +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 AutoConfigure"
|
2020-01-10 21:48:43 +08:00
|
|
|
|
|
|
|
dependencies {
|
2025-03-01 04:54:04 +08:00
|
|
|
api(project(":spring-boot-project:spring-boot-all"))
|
2020-06-03 19:55:11 +08:00
|
|
|
api(project(":spring-boot-project:spring-boot-test"))
|
2025-03-06 19:44:37 +08:00
|
|
|
api(project(":spring-boot-project:spring-boot-autoconfigure-all"))
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2025-03-26 22:40:05 +08:00
|
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-data-mongodb"))
|
2024-06-28 08:25:36 +08:00
|
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-docker-compose"))
|
2024-06-26 01:06:01 +08:00
|
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
|
2024-06-26 18:10:16 +08:00
|
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
|
2025-03-18 21:22:09 +08:00
|
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-tx"))
|
2024-06-28 08:25:36 +08:00
|
|
|
dockerTestImplementation("com.zaxxer:HikariCP")
|
2024-06-26 01:06:01 +08:00
|
|
|
dockerTestImplementation("io.projectreactor:reactor-test")
|
2024-08-22 04:02:38 +08:00
|
|
|
dockerTestImplementation("com.redis:testcontainers-redis")
|
2024-06-28 08:25:36 +08:00
|
|
|
dockerTestImplementation("com.h2database:h2")
|
2024-06-26 01:06:01 +08:00
|
|
|
dockerTestImplementation("org.assertj:assertj-core")
|
|
|
|
dockerTestImplementation("org.junit.jupiter:junit-jupiter")
|
2024-06-28 08:25:36 +08:00
|
|
|
dockerTestImplementation("org.postgresql:postgresql")
|
2024-06-26 01:06:01 +08:00
|
|
|
dockerTestImplementation("org.testcontainers:cassandra")
|
|
|
|
dockerTestImplementation("org.testcontainers:couchbase")
|
|
|
|
dockerTestImplementation("org.testcontainers:elasticsearch")
|
|
|
|
dockerTestImplementation("org.testcontainers:junit-jupiter")
|
|
|
|
dockerTestImplementation("org.testcontainers:mongodb")
|
|
|
|
dockerTestImplementation("org.testcontainers:neo4j")
|
2024-06-28 08:25:36 +08:00
|
|
|
dockerTestImplementation("org.testcontainers:postgresql")
|
2024-06-26 01:06:01 +08:00
|
|
|
dockerTestImplementation("org.testcontainers:testcontainers")
|
2024-06-26 18:10:16 +08:00
|
|
|
|
2024-06-26 01:06:01 +08:00
|
|
|
dockerTestRuntimeOnly("io.lettuce:lettuce-core")
|
|
|
|
dockerTestRuntimeOnly("org.springframework.data:spring-data-redis")
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2025-03-28 15:35:23 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-cassandra"))
|
2025-03-28 22:58:14 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-couchbase"))
|
2025-03-28 16:29:10 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-elasticsearch"))
|
2025-03-28 23:27:46 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-jdbc"))
|
2025-03-21 18:44:31 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-jpa"))
|
2025-03-25 17:58:46 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-ldap"))
|
2025-03-26 22:40:05 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-mongodb"))
|
2025-04-23 17:48:51 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-neo4j"))
|
2025-03-29 00:17:27 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-r2dbc"))
|
2025-03-28 21:11:55 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-redis"))
|
2025-03-30 14:35:56 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-data-web"))
|
2025-03-21 15:49:18 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-flyway"))
|
2025-03-20 12:08:10 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-groovy-templates"))
|
2025-03-27 04:33:22 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-hateoas"))
|
2025-03-27 23:05:29 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-http"))
|
2025-03-14 23:27:21 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-jackson"))
|
2025-03-18 19:11:17 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-jdbc"))
|
2025-03-24 16:44:45 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-jooq"))
|
2025-03-18 17:03:45 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-jsonb"))
|
2025-04-12 05:25:07 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-liquibase")) {
|
|
|
|
exclude(group: "org.liquibase")
|
|
|
|
}
|
2025-03-26 20:11:30 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-mongodb"))
|
2025-03-21 17:14:25 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-r2dbc"))
|
2025-03-14 18:02:53 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
|
2025-03-18 21:22:09 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-tx"))
|
2025-03-19 21:43:09 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-validation"))
|
2025-03-27 22:05:55 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-webmvc"))
|
2025-03-28 18:23:50 +08:00
|
|
|
optional(project(":spring-boot-project:spring-boot-webservices"))
|
2021-11-13 01:54:32 +08:00
|
|
|
optional("jakarta.json.bind:jakarta.json.bind-api")
|
|
|
|
optional("jakarta.persistence:jakarta.persistence-api")
|
|
|
|
optional("jakarta.servlet:jakarta.servlet-api")
|
|
|
|
optional("jakarta.transaction:jakarta.transaction-api")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("com.fasterxml.jackson.core:jackson-databind")
|
|
|
|
optional("com.google.code.gson:gson")
|
|
|
|
optional("com.jayway.jsonpath:json-path")
|
2020-05-14 16:53:16 +08:00
|
|
|
optional("com.sun.xml.messaging.saaj:saaj-impl")
|
2024-03-11 18:29:15 +08:00
|
|
|
optional("org.hibernate.orm:hibernate-core")
|
|
|
|
optional("org.htmlunit:htmlunit") {
|
2021-11-13 01:54:32 +08:00
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.junit.jupiter:junit-jupiter-api")
|
2024-03-11 18:29:15 +08:00
|
|
|
optional("org.seleniumhq.selenium:htmlunit3-driver") {
|
2022-11-08 17:47:27 +08:00
|
|
|
exclude(group: "commons-logging", module: "commons-logging")
|
|
|
|
exclude(group: "com.sun.activation", module: "jakarta.activation")
|
2021-11-13 01:54:32 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.seleniumhq.selenium:selenium-api")
|
|
|
|
optional("org.springframework:spring-orm")
|
|
|
|
optional("org.springframework:spring-test")
|
|
|
|
optional("org.springframework:spring-web")
|
|
|
|
optional("org.springframework:spring-webflux")
|
2024-04-11 23:55:24 +08:00
|
|
|
optional("org.springframework.data:spring-data-couchbase")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.springframework.data:spring-data-jdbc")
|
|
|
|
optional("org.springframework.data:spring-data-jpa")
|
|
|
|
optional("org.springframework.data:spring-data-ldap")
|
|
|
|
optional("org.springframework.data:spring-data-mongodb")
|
2020-02-20 17:22:15 +08:00
|
|
|
optional("org.springframework.data:spring-data-r2dbc")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.springframework.data:spring-data-redis")
|
2022-07-20 19:57:17 +08:00
|
|
|
optional("org.springframework.graphql:spring-graphql-test")
|
2023-05-19 20:40:23 +08:00
|
|
|
optional("org.springframework.restdocs:spring-restdocs-mockmvc")
|
2022-03-25 18:12:42 +08:00
|
|
|
optional("org.springframework.restdocs:spring-restdocs-restassured")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.springframework.restdocs:spring-restdocs-webtestclient")
|
|
|
|
optional("org.springframework.security:spring-security-config")
|
|
|
|
optional("org.springframework.security:spring-security-test")
|
2019-06-19 22:48:38 +08:00
|
|
|
optional("org.springframework.ws:spring-ws-core")
|
|
|
|
optional("org.springframework.ws:spring-ws-test")
|
2020-01-23 06:09:17 +08:00
|
|
|
optional("org.apache.tomcat.embed:tomcat-embed-core")
|
|
|
|
optional("org.mongodb:mongodb-driver-reactivestreams")
|
2020-01-29 00:29:21 +08:00
|
|
|
optional("org.mongodb:mongodb-driver-sync")
|
2022-11-02 19:07:01 +08:00
|
|
|
optional("io.micrometer:micrometer-tracing")
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2020-06-05 06:57:03 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-actuator"))
|
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
2025-03-19 22:00:24 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-freemarker"))
|
2025-03-25 20:55:33 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-gson"))
|
2025-03-24 18:57:37 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-mustache"))
|
2023-04-11 11:15:39 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
|
2025-03-25 18:22:30 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-thymeleaf"))
|
2024-06-26 01:06:01 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("ch.qos.logback:logback-classic")
|
|
|
|
testImplementation("com.fasterxml.jackson.module:jackson-module-parameter-names")
|
|
|
|
testImplementation("com.h2database:h2")
|
|
|
|
testImplementation("com.unboundid:unboundid-ldapsdk")
|
|
|
|
testImplementation("io.lettuce:lettuce-core")
|
2025-01-14 20:34:43 +08:00
|
|
|
testImplementation("io.micrometer:micrometer-registry-prometheus")
|
2022-02-20 15:18:43 +08:00
|
|
|
testImplementation("io.projectreactor.netty:reactor-netty-http")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("io.projectreactor:reactor-core")
|
2020-02-20 17:22:15 +08:00
|
|
|
testImplementation("io.projectreactor:reactor-test")
|
|
|
|
testImplementation("io.r2dbc:r2dbc-h2")
|
2021-11-13 01:54:32 +08:00
|
|
|
testImplementation("jakarta.json:jakarta.json-api")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.apache.commons:commons-pool2")
|
|
|
|
testImplementation("org.apache.tomcat.embed:tomcat-embed-el")
|
|
|
|
testImplementation("org.aspectj:aspectjrt")
|
|
|
|
testImplementation("org.aspectj:aspectjweaver")
|
2021-11-12 01:46:29 +08:00
|
|
|
testImplementation("org.eclipse:yasson")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.hibernate.validator:hibernate-validator")
|
|
|
|
testImplementation("org.hsqldb:hsqldb")
|
2025-04-08 02:00:27 +08:00
|
|
|
testImplementation("org.jooq:jooq")
|
2021-05-21 21:54:15 +08:00
|
|
|
testImplementation("org.junit.platform:junit-platform-engine")
|
|
|
|
testImplementation("org.junit.platform:junit-platform-launcher")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.springframework.hateoas:spring-hateoas")
|
|
|
|
testImplementation("org.springframework.plugin:spring-plugin-core")
|
2022-01-06 21:28:05 +08:00
|
|
|
testImplementation("org.thymeleaf:thymeleaf")
|
2025-03-03 19:47:30 +08:00
|
|
|
|
|
|
|
testRuntimeOnly(project(":spring-boot-project:spring-boot-tomcat"))
|
2025-03-21 15:49:18 +08:00
|
|
|
testRuntimeOnly("org.flywaydb:flyway-database-hsqldb")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-12-16 01:20:21 +08:00
|
|
|
configurations {
|
|
|
|
configurationPropertiesMetadata
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
configurationPropertiesMetadata new File(sourceSets.main.output.resourcesDir, "META-INF/spring-configuration-metadata.json"), { artifact ->
|
|
|
|
artifact.builtBy sourceSets.main.processResourcesTaskName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
test {
|
2020-01-23 03:24:37 +08:00
|
|
|
include "**/*Tests.class"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("testSliceMetadata", org.springframework.boot.build.test.autoconfigure.TestSliceMetadata) {
|
2020-01-10 21:48:43 +08:00
|
|
|
sourceSet = sourceSets.main
|
2024-10-17 23:41:00 +08:00
|
|
|
outputFile = layout.buildDirectory.file("test-slice-metadata.properties")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|