> Task :kaptGenerateStubsKotlin
....
w: Language version 1.6 is experimental, there are no backwards compatibility guarantees for new language and library features
w: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:+JvmRecordSupport
This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
w: Language version 1.6 is experimental, there are no backwards compatibility guarantees for new language and library features
Compilation with Kotlin compile daemon was not successful
java.lang.NullPointerException
at org.jetbrains.kotlin.incremental.IncrementalJvmCache.addToClassStorage(IncrementalJvmCache.kt:494)
at org.jetbrains.kotlin.incremental.IncrementalJvmCache.saveFileToCache(IncrementalJvmCache.kt:171)
at org.jetbrains.kotlin.incremental.BuildUtilKt.updateIncrementalCache(buildUtil.kt:110)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.updateCaches(IncrementalJvmCompilerRunner.kt:326)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.updateCaches(IncrementalJvmCompilerRunner.kt:112)
@Tomasz Krakowiak thanks..i do have all the workaround mentioned (add-opens for strong encapsulation) and is working on lang version 1.5. Issue happens only with 1.6.