Files
messaging-library/messaging/messaging-observability/build.gradle
T

29 lines
1.1 KiB
Groovy

apply plugin: 'java-library'
dependencies {
api project(':messaging:messaging-core-api')
// api: MessagingMetrics' public constructor takes a MeterRegistry, so wiring it requires
// naming the type.
api 'io.micrometer:micrometer-core'
}
// Wave 0 — a report, not a gate. The secret-scanner characterization lives in this module.
tasks.register('wave0Red', Test) {
description = 'Reports which Wave 0 baseline characterizations are still red in this module.'
group = 'verification'
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath
useJUnitPlatform { includeTags 'wave0-red' }
ignoreFailures = true
outputs.upToDateWhen { false }
reports.junitXml.required = true
reports.junitXml.outputLocation = layout.buildDirectory.dir('test-results/wave0Red')
}
tasks.named('test') {
// See app-bootstrap: the Wave 0 characterizations are reported by wave0RedReport rather than
// failing every build until the wave that closes them lands.
useJUnitPlatform { excludeTags 'wave0-red' }
}