Remove warning when KGP version not detected (#151254)

The Kotlin Gradle plugin isn't actually required. Assume the good case if we can't find the version (that the project doesn't need it).
This commit is contained in:
Gray Mackall
2024-07-03 12:49:07 -07:00
committed by GitHub
parent fbd6890fb7
commit f60f85abcd

View File

@@ -125,12 +125,8 @@ class DependencyVersionChecker {
kgpVersion = getKGPVersion(project)
if (kgpVersion != null) {
checkKGPVersion(kgpVersion, project)
} else {
project.logger.error(
"Warning: unable to detect project KGP version. Skipping " +
"version checking. \nThis may be because you have applied KGP after the Flutter Gradle Plugin."
)
}
// KGP is not required, so don't log any warning if we can't find the version.
}
// https://docs.gradle.org/current/kotlin-dsl/gradle/org.gradle.api.invocation/-gradle/index.html#-837060600%2FFunctions%2F-1793262594