diff --git a/plugins/src/main/java/com/google/gradle/plugins/ApiPlugin.kt b/plugins/src/main/java/com/google/gradle/plugins/ApiPlugin.kt index 33b7a811..f12c2d88 100644 --- a/plugins/src/main/java/com/google/gradle/plugins/ApiPlugin.kt +++ b/plugins/src/main/java/com/google/gradle/plugins/ApiPlugin.kt @@ -69,7 +69,7 @@ abstract class ApiPlugin : Plugin { 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) }