2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2020-01-23 03:24:37 +08:00
|
|
|
id "java-library"
|
|
|
|
id "org.springframework.boot.conventions"
|
|
|
|
id "org.springframework.boot.deployed"
|
|
|
|
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 {
|
2020-06-03 19:55:11 +08:00
|
|
|
api(project(":spring-boot-project:spring-boot"))
|
|
|
|
api(project(":spring-boot-project:spring-boot-test"))
|
|
|
|
api(project(":spring-boot-project:spring-boot-autoconfigure"))
|
2020-01-10 21:48:43 +08:00
|
|
|
|
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-webmvc")
|
|
|
|
optional("org.springframework:spring-webflux")
|
2021-11-13 01:54:32 +08:00
|
|
|
optional("org.springframework.data:spring-data-cassandra") {
|
|
|
|
exclude group: "org.slf4j", module: "jcl-over-slf4j"
|
|
|
|
}
|
2024-04-11 23:55:24 +08:00
|
|
|
optional("org.springframework.data:spring-data-couchbase")
|
2022-02-20 15:18:43 +08:00
|
|
|
optional("org.springframework.data:spring-data-elasticsearch")
|
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")
|
|
|
|
optional("org.springframework.data:spring-data-neo4j")
|
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"))
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
|
2023-04-11 11:15:39 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
|
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")
|
2024-03-12 04:35:56 +08:00
|
|
|
testImplementation("io.micrometer:micrometer-registry-prometheus-simpleclient")
|
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")
|
|
|
|
testImplementation("org.assertj:assertj-core")
|
2020-04-30 22:05:23 +08:00
|
|
|
testImplementation("org.awaitility:awaitility")
|
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")
|
2022-01-05 23:46:54 +08:00
|
|
|
testImplementation("org.jooq:jooq") {
|
|
|
|
exclude group: "javax.xml.bind", module: "jaxb-api"
|
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
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.mockito:mockito-core")
|
2020-08-08 22:53:42 +08:00
|
|
|
testImplementation("org.mockito:mockito-junit-jupiter")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.skyscreamer:jsonassert")
|
2022-11-09 22:15:07 +08:00
|
|
|
testImplementation("org.springframework:spring-core-test")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.springframework.hateoas:spring-hateoas")
|
|
|
|
testImplementation("org.springframework.plugin:spring-plugin-core")
|
2023-04-11 11:15:39 +08:00
|
|
|
testImplementation("org.testcontainers:cassandra")
|
|
|
|
testImplementation("org.testcontainers:couchbase")
|
|
|
|
testImplementation("org.testcontainers:elasticsearch")
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.testcontainers:junit-jupiter")
|
2023-04-11 11:15:39 +08:00
|
|
|
testImplementation("org.testcontainers:mongodb")
|
|
|
|
testImplementation("org.testcontainers:neo4j")
|
|
|
|
testImplementation("org.testcontainers:testcontainers")
|
2022-01-06 21:28:05 +08:00
|
|
|
testImplementation("org.thymeleaf:thymeleaf")
|
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
|
|
|
}
|
|
|
|
|
|
|
|
task testSliceMetadata(type: org.springframework.boot.build.test.autoconfigure.TestSliceMetadata) {
|
|
|
|
sourceSet = sourceSets.main
|
2020-01-22 10:33:33 +08:00
|
|
|
outputFile = file("${buildDir}/test-slice-metadata.properties")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|