I see this warning coming from KSP - is that from ...
# ksp
z
I see this warning coming from KSP - is that from kotlinc under the hood or something in KSP? If so - could that also be suppressed?
Copy code
w: Language version 1.5 is experimental, there are no backwards compatibility guarantees for new language and library features
As it prevents us from using
warningsAsError
t
Somehow
-language-version=1.5
is passed to the compiler. I'm not sure where it was set. It can be muted with
-Xsuppress-version-warnings
z
ah great, thanks
t
IIRC KSP doesn't set the language version. Could it come from the project being built?
z
yeah I'm setting it to 1.5 for KotlinCompile tasks
also that flag doesn't seem to be available anymore
Copy code
w: Flag is not supported by this version of the compiler: -Xsuppress-version-warnings
w: Language version 1.5 is experimental, there are no backwards compatibility guarantees for new language and library features
e: warnings found and -Werror specified
t
how did you add the flag? by adding it to free args?
I mean kotlinOptions.freeCompilerArgs
z
Yeah that’s where I tried adding it