Fix incorrect kapt classpath error message.

The correct value is `kapt.include.compile.classpath`

^KT-47002 Fixed
This commit is contained in:
Zac Sweers
2021-11-16 17:35:10 -05:00
committed by Yahor Berdnikau
parent 684273783f
commit 7f5eb3f5ff
2 changed files with 3 additions and 3 deletions
@@ -621,7 +621,7 @@ class Kapt3GradleSubplugin @Inject internal constructor(private val registry: To
if (includeCompileClasspath && project.classLoadersCacheSize() > 0) {
project.logger.warn(
"ClassLoaders cache can't be enabled together with AP discovery in compilation classpath."
+ "\nSet 'kapt.includeCompileClasspath = false' to disable discovery"
+ "\nSet 'kapt.include.compile.classpath=false' to disable discovery"
)
} else {
it.classLoadersCacheSize = project.classLoadersCacheSize()
@@ -226,7 +226,7 @@ abstract class KaptTask @Inject constructor(
if (logger.isInfoEnabled) {
logger.warn(
"Annotation processors discovery from compile classpath is deprecated."
+ "\nSet 'kapt.includeCompileClasspath = false' to disable discovery."
+ "\nSet 'kapt.include.compile.classpath=false' to disable discovery."
+ "\nThe following files, containing annotation processors, are not present in KAPT classpath:\n"
+ processorsAbsentInKaptClasspath.joinToString("\n") { " '$it'" }
+ "\nAdd corresponding dependencies to any of the following configurations:\n"
@@ -235,7 +235,7 @@ abstract class KaptTask @Inject constructor(
} else {
logger.warn(
"Annotation processors discovery from compile classpath is deprecated."
+ "\nSet 'kapt.includeCompileClasspath = false' to disable discovery."
+ "\nSet 'kapt.include.compile.classpath=false' to disable discovery."
+ "\nRun the build with '--info' for more details."
)
}