e2521718dd
Currently, KaptGenerateStubsTask may not generate KDoc comments correctly. See KT-43593 for more details. This commit provides a Kapt flag called `kapt.keep.kdoc.comments.in.stubs` to control whether KDoc comments will be included in the generated stubs. This flag is currently enabled by default to keep the existing behavior and avoid breaking existing users. Users who don't need KDoc comments in stubs but are hitting KT-43593 can disable the flag. Whether this flag will be disabled by default later is to be determined. Bug: https://youtrack.jetbrains.com/issue/KT-43593 (Note that this commit only provides a workaround, it doesn't actually fix the bug.) Test: (Ir)ClassFileToSourceStubConverterTestGenerated#testCommentsRemoved