We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9dd0c0 commit e1da70eCopy full SHA for e1da70e
instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent/build.gradle.kts
@@ -22,16 +22,14 @@ dependencies {
22
latestDepTestLibrary("ch.qos.logback:logback-classic:+")
23
}
24
25
-tasks {
26
- val testPrometheus by registering(Test::class) {
27
- dependencies {
28
- runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3")
+testing {
+ suites {
+ val testPrometheus by registering(JvmTestSuite::class) {
+ dependencies {
29
+ runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3")
30
+ }
31
32
-
- check {
33
- dependsOn(testPrometheus)
34
- }
35
36
37
tasks.withType<Test>().configureEach {
@@ -61,3 +59,9 @@ if (!latestDepTest) {
61
59
62
60
63
+
+tasks {
64
+ check {
65
+ dependsOn(testing.suites)
66
67
+}
0 commit comments