Skip to content

Commit 0a643a1

Browse files
authored
Fix apidiff CI verification (#15066)
1 parent a6cc2ba commit 0a643a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conventions/src/main/kotlin/otel.japicmp-conventions.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fun findArtifact(version: String): File {
4949
}
5050

5151
// generate the api diff report for any module that is stable
52-
if (project.findProperty("otel.stable") == "true") {
52+
if (project.findProperty("otel.stable") == "true" && project.path != ":javaagent") {
5353
afterEvaluate {
5454
// Only apply japicmp to projects that have a jar task (i.e. not BOMs or platforms)
5555
tasks.findByName("jar")?.let {
@@ -101,8 +101,8 @@ if (project.findProperty("otel.stable") == "true") {
101101
?: file("$rootDir/docs/apidiffs/current_vs_$baseVersionString/${base.archivesName.get()}.txt")
102102
)
103103
}
104-
// have the jApiCmp task run every time the jar task is run, to make it more likely it will get used.
105-
named("jar") {
104+
// have the check task depend on the api comparison task, to make it more likely it will get used.
105+
named("check") {
106106
finalizedBy(jApiCmp)
107107
}
108108
}

0 commit comments

Comments
 (0)