[KAPT] Refactor Kapt 3 components for reuse in Kapt 4 (KT-51982)

- make some utility functions and classes public
- split some classes into common and Kapt 3 - specific parts
- use Kapt 4-ready filtering of @Metadata annotations in tests
This commit is contained in:
Pavel Mikhailovskii
2023-07-26 14:03:14 +00:00
committed by Space Team
parent c702f00399
commit 7ecd7b8e61
14 changed files with 238 additions and 190 deletions
@@ -191,7 +191,7 @@ fun collectAggregatedTypes(sourcesToReprocess: SourcesToReprocess = SourcesToRep
fun KaptOptions.logString(additionalInfo: String = "") = buildString {
val additionalInfoRendered = if (additionalInfo.isEmpty()) "" else " ($additionalInfo)"
appendLine("Kapt3 is enabled$additionalInfoRendered.")
appendLine("Kapt is enabled$additionalInfoRendered.")
appendLine("Annotation processing mode: ${mode.stringValue}")
appendLine("Memory leak detection mode: ${detectMemoryLeaks.stringValue}")