Zac Sweers
12/03/2024, 11:32 PMw: K2 kapt is in Alpha. Use with caution.
e: warnings found and -Werror specified
eygraber
12/04/2024, 1:31 AMdmitriy.novozhilov
12/05/2024, 9:07 AMudalov
-Xsuppress-version-warnings
Zac Sweers
12/05/2024, 5:30 PMZac Sweers
12/06/2024, 6:50 PMudalov
Zac Sweers
12/06/2024, 7:18 PMudalov
freeCompilerArgs
for this task?Zac Sweers
12/06/2024, 7:18 PMudalov
-Xsuppress-version-warnings
in the compiler arguments. If you feel adventurous, you can dump compiler arguments by passing --debug
to Gradle (output to file since it's very large) and try looking for it there. But anyway, this warning is removed in 2.1.20.Gabriel Ittner
12/19/2024, 4:59 PMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs.class).configureEach {
compilerOptions {
freeCompilerArgs.add("-Xsuppress-version-warnings")
}
}
But adding it globally through the extension works
kotlin {
compilerOptions {
freeCompilerArgs.add("-Xsuppress-version-warnings")
}
}
I’ve checked the debug logs and only in the second case -Xsuppress-version-warnings
was in the compiler argsZac Sweers
12/19/2024, 5:00 PM