Skip to content

Commit 5911028

Browse files
authored
Fix FindChangesTask not finding the latest api file (#48)
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.
1 parent 2fe1dfb commit 5911028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/src/main/java/com/google/gradle/plugins/ApiPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ abstract class ApiPlugin : Plugin<Project> {
6969

7070
context(Project)
7171
private fun ApiPluginExtension.commonConfiguration() {
72-
val latestApiFile = project.file("api/${project.version}.api")
72+
val latestApiFile = rootProject.file("api/${project.version}.api")
7373

7474
apiFile.convention(latestApiFile)
7575
}

0 commit comments

Comments
 (0)