Skip to content

Commit 37a0e70

Browse files
committed
fix(build): disable test tasks when denyUnsafe is true
1 parent 0ea0c17 commit 37a0e70

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

instrumentation/sofa-rpc-5.4/javaagent/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@ configurations.named("testSofaRpcRuntimeClasspath") {
8383
force("org.slf4j:slf4j-api:1.7.21")
8484
}
8585
}
86+
87+
if (otelProps.denyUnsafe) {
88+
tasks.withType<Test>().configureEach {
89+
enabled = false
90+
}
91+
}

0 commit comments

Comments
 (0)