Skip to content

Commit

Permalink
add a few comments and make the build task depend on the japicmp task
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwatson committed Apr 27, 2021
1 parent af5bcc1 commit 826b7ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ subprojects {

plugins.withId("me.champeau.gradle.japicmp") {
afterEvaluate {
// hack to find the current released version of the project
val temp: Configuration = project.configurations.create("tempConfig")
project.dependencies.add("tempConfig", "io.opentelemetry:opentelemetry-bom:latest.release")
val moduleVersion = project.configurations["tempConfig"].resolvedConfiguration.firstLevelModuleDependencies.elementAt(0).moduleVersion
Expand Down Expand Up @@ -488,8 +489,9 @@ subprojects {
} else {
txtOutputFile = file("$projectDir/docs/api_diff_${newVersion}_vs_${baselineVersion}.txt")
}

}
//have the build task depend on the api comparison task, to make it more likely it will get used.
getByName("build").dependsOn("japicmp")
}
}
}
Expand Down

0 comments on commit 826b7ed

Please sign in to comment.