2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2020-01-23 03:24:37 +08:00
|
|
|
id "java-library"
|
|
|
|
id "org.asciidoctor.jvm.convert"
|
|
|
|
id "org.asciidoctor.jvm.pdf"
|
|
|
|
id "org.springframework.boot.auto-configuration"
|
|
|
|
id "org.springframework.boot.conventions"
|
|
|
|
id "org.springframework.boot.deployed"
|
|
|
|
id "org.springframework.boot.internal-dependency-management"
|
|
|
|
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 Actuator AutoConfigure"
|
2020-01-10 21:48:43 +08:00
|
|
|
|
|
|
|
configurations {
|
|
|
|
asciidoctorExtensions
|
|
|
|
documentation
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-01-23 06:09:17 +08:00
|
|
|
asciidoctorExtensions(platform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
|
|
asciidoctorExtensions("org.springframework.restdocs:spring-restdocs-asciidoctor")
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
|
|
api(project(":spring-boot-project:spring-boot-actuator"))
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
implementation(project(":spring-boot-project:spring-boot"))
|
|
|
|
implementation(project(":spring-boot-project:spring-boot-autoconfigure"))
|
|
|
|
implementation("com.fasterxml.jackson.core:jackson-databind")
|
|
|
|
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
|
|
|
|
implementation("org.springframework:spring-core")
|
|
|
|
implementation("org.springframework:spring-context")
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
optional(platform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
|
|
optional("ch.qos.logback:logback-classic")
|
|
|
|
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
|
|
|
|
optional("com.github.ben-manes.caffeine:caffeine")
|
|
|
|
optional("com.hazelcast:hazelcast")
|
|
|
|
optional("com.hazelcast:hazelcast-spring")
|
|
|
|
optional("com.sun.mail:jakarta.mail")
|
|
|
|
optional("com.zaxxer:HikariCP")
|
|
|
|
optional("io.dropwizard.metrics:metrics-jmx")
|
|
|
|
optional("io.lettuce:lettuce-core")
|
|
|
|
optional("io.micrometer:micrometer-core")
|
|
|
|
optional("io.micrometer:micrometer-jersey2")
|
|
|
|
optional("io.micrometer:micrometer-registry-appoptics")
|
|
|
|
optional("io.micrometer:micrometer-registry-atlas")
|
|
|
|
optional("io.micrometer:micrometer-registry-datadog")
|
|
|
|
optional("io.micrometer:micrometer-registry-dynatrace")
|
|
|
|
optional("io.micrometer:micrometer-registry-elastic")
|
|
|
|
optional("io.micrometer:micrometer-registry-ganglia")
|
|
|
|
optional("io.micrometer:micrometer-registry-graphite")
|
|
|
|
optional("io.micrometer:micrometer-registry-humio")
|
|
|
|
optional("io.micrometer:micrometer-registry-influx")
|
|
|
|
optional("io.micrometer:micrometer-registry-jmx")
|
|
|
|
optional("io.micrometer:micrometer-registry-kairos")
|
|
|
|
optional("io.micrometer:micrometer-registry-new-relic")
|
|
|
|
optional("io.micrometer:micrometer-registry-prometheus")
|
|
|
|
optional("io.micrometer:micrometer-registry-stackdriver")
|
|
|
|
optional("io.prometheus:simpleclient_pushgateway")
|
|
|
|
optional("io.micrometer:micrometer-registry-signalfx")
|
|
|
|
optional("io.micrometer:micrometer-registry-statsd")
|
|
|
|
optional("io.micrometer:micrometer-registry-wavefront")
|
|
|
|
optional("io.projectreactor.netty:reactor-netty")
|
|
|
|
optional("jakarta.jms:jakarta.jms-api")
|
|
|
|
optional("jakarta.servlet:jakarta.servlet-api")
|
|
|
|
optional("javax.cache:cache-api")
|
|
|
|
optional("net.sf.ehcache:ehcache")
|
|
|
|
optional("org.apache.activemq:activemq-broker")
|
|
|
|
optional("org.apache.commons:commons-dbcp2")
|
|
|
|
optional("org.apache.kafka:kafka-clients")
|
|
|
|
optional("org.apache.tomcat.embed:tomcat-embed-core")
|
|
|
|
optional("org.apache.tomcat.embed:tomcat-embed-el")
|
|
|
|
optional("org.apache.tomcat:tomcat-jdbc")
|
|
|
|
optional("org.aspectj:aspectjweaver")
|
|
|
|
optional("org.eclipse.jetty:jetty-server")
|
|
|
|
optional("org.elasticsearch:elasticsearch")
|
|
|
|
optional("org.elasticsearch.client:elasticsearch-rest-client")
|
|
|
|
optional("org.flywaydb:flyway-core")
|
|
|
|
optional("org.glassfish.jersey.core:jersey-server")
|
|
|
|
optional("org.glassfish.jersey.containers:jersey-container-servlet-core")
|
|
|
|
optional("org.hibernate:hibernate-core")
|
|
|
|
optional("org.hibernate.validator:hibernate-validator")
|
|
|
|
optional("org.influxdb:influxdb-java")
|
|
|
|
optional("org.jolokia:jolokia-core")
|
|
|
|
optional("org.liquibase:liquibase-core")
|
|
|
|
optional("org.mongodb:mongodb-driver-async")
|
|
|
|
optional("org.mongodb:mongodb-driver-reactivestreams")
|
|
|
|
optional("org.springframework:spring-jdbc")
|
|
|
|
optional("org.springframework:spring-jms")
|
|
|
|
optional("org.springframework:spring-messaging")
|
|
|
|
optional("org.springframework:spring-webflux")
|
|
|
|
optional("org.springframework:spring-webmvc")
|
|
|
|
optional("org.springframework.amqp:spring-rabbit")
|
|
|
|
optional("org.springframework.data:spring-data-cassandra")
|
|
|
|
optional("org.springframework.data:spring-data-couchbase")
|
|
|
|
optional("org.springframework.data:spring-data-ldap")
|
|
|
|
optional("org.springframework.data:spring-data-mongodb")
|
|
|
|
optional("org.springframework.data:spring-data-neo4j")
|
|
|
|
optional("org.springframework.data:spring-data-redis")
|
|
|
|
optional("org.springframework.data:spring-data-solr")
|
|
|
|
optional("org.springframework.integration:spring-integration-core")
|
|
|
|
optional("org.springframework.security:spring-security-config")
|
|
|
|
optional("org.springframework.security:spring-security-web")
|
|
|
|
optional("org.springframework.session:spring-session-core")
|
|
|
|
optional("redis.clients:jedis")
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-test"))
|
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
|
|
|
|
testImplementation("io.projectreactor:reactor-test")
|
|
|
|
testImplementation("com.squareup.okhttp3:mockwebserver")
|
|
|
|
testImplementation("com.jayway.jsonpath:json-path")
|
|
|
|
testImplementation("io.undertow:undertow-core")
|
|
|
|
testImplementation("io.undertow:undertow-servlet") {
|
2020-01-23 03:24:37 +08:00
|
|
|
exclude group: "org.jboss.spec.javax.annotation", module: "jboss-annotations-api_1.2_spec"
|
|
|
|
exclude group: "org.jboss.spec.javax.servlet", module: "jboss-servlet-api_4.0_spec"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("javax.xml.bind:jaxb-api")
|
|
|
|
testImplementation("org.apache.logging.log4j:log4j-to-slf4j")
|
|
|
|
testImplementation("org.aspectj:aspectjrt")
|
|
|
|
testImplementation("org.assertj:assertj-core")
|
|
|
|
testImplementation("org.eclipse.jetty:jetty-webapp")
|
|
|
|
testImplementation("org.glassfish.jersey.ext:jersey-spring4")
|
|
|
|
testImplementation("org.glassfish.jersey.media:jersey-media-json-jackson")
|
|
|
|
testImplementation("org.hamcrest:hamcrest")
|
|
|
|
testImplementation("org.hsqldb:hsqldb")
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
|
|
testImplementation("org.mockito:mockito-core")
|
|
|
|
testImplementation("org.skyscreamer:jsonassert")
|
|
|
|
testImplementation("org.springframework:spring-orm")
|
|
|
|
testImplementation("org.springframework.data:spring-data-elasticsearch") {
|
2020-01-23 03:24:37 +08:00
|
|
|
exclude group: "org.elasticsearch.client", module: "transport"
|
2020-01-13 22:36:47 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation("org.springframework.data:spring-data-rest-webmvc")
|
|
|
|
testImplementation("org.springframework.integration:spring-integration-jmx")
|
|
|
|
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
|
|
|
|
testImplementation("org.springframework.restdocs:spring-restdocs-webtestclient")
|
|
|
|
testImplementation("org.springframework.security:spring-security-test")
|
|
|
|
testImplementation("org.yaml:snakeyaml")
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
|
|
testRuntimeOnly("org.springframework.security:spring-security-oauth2-jose")
|
|
|
|
testRuntimeOnly("org.springframework.security:spring-security-oauth2-resource-server")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2020-01-23 03:24:37 +08:00
|
|
|
options.compilerArgs << "-parameters"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
2020-01-23 03:24:37 +08:00
|
|
|
options.compilerArgs << "-parameters"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
2020-01-22 10:33:33 +08:00
|
|
|
outputs.dir("${buildDir}/generated-snippets")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
asciidoctor {
|
2020-01-23 03:24:37 +08:00
|
|
|
configurations "asciidoctorExtensions"
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn test
|
|
|
|
sources {
|
2020-01-23 03:24:37 +08:00
|
|
|
include "index.adoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
asciidoctorPdf {
|
2020-01-23 03:24:37 +08:00
|
|
|
configurations "asciidoctorExtensions"
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn test
|
|
|
|
sources {
|
2020-01-23 03:24:37 +08:00
|
|
|
include "index.adoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task zip(type: Zip) {
|
|
|
|
dependsOn asciidoctor, asciidoctorPdf
|
2020-01-23 03:24:37 +08:00
|
|
|
duplicatesStrategy "fail"
|
2020-01-10 21:48:43 +08:00
|
|
|
from(asciidoctorPdf.outputDir) {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "pdf"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
from(asciidoctor.outputDir) {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "html"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
documentation zip
|
|
|
|
}
|