Skip to content

Commit

Permalink
Fix FindChangesTask not finding the latest api file (#48)
Browse files Browse the repository at this point in the history
Per [b/322982573](https://b.corp.google.com/issues/322982573),

This fixes the issue with `findChanges` not working correctly. The issue
stemmed from the fact that it was still looking for the current `.api`
file in the project directory- when we've migrated to a `api` directory
at the root.
  • Loading branch information
daymxn authored Jan 30, 2024
1 parent 2fe1dfb commit 5911028
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ abstract class ApiPlugin : Plugin<Project> {

context(Project)
private fun ApiPluginExtension.commonConfiguration() {
val latestApiFile = project.file("api/${project.version}.api")
val latestApiFile = rootProject.file("api/${project.version}.api")

apiFile.convention(latestApiFile)
}
Expand Down

0 comments on commit 5911028

Please sign in to comment.