From 0c639834ce9489218539c920a32c0dc153673231 Mon Sep 17 00:00:00 2001 From: Eduardo Fonseca Date: Tue, 4 Jun 2024 22:55:43 -0300 Subject: [PATCH] Update ksp2entrypoints.md (cherry picked from commit 1041213478287fc5458c7ef1153d3d3eb6acdf85) --- docs/ksp2entrypoints.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ksp2entrypoints.md b/docs/ksp2entrypoints.md index 9895c8bfca..d207fa2b56 100644 --- a/docs/ksp2entrypoints.md +++ b/docs/ksp2entrypoints.md @@ -12,7 +12,7 @@ Calling KSP2 consists of just 4 steps: 4. Call `KotlinSymbolProcessing(kspConfig, processors, kspLogger).execute()` -``` +```kotlin // Implement a logger or use KspGradleLogger val logger = KspGradleLogger(KspGradleLogger.LOGGING_LEVEL_WARN) @@ -27,11 +27,11 @@ val processorProviders = ServiceLoader.load( val kspConfig = KSPJvmConfig.Builder().apply { // All configurations happen here. See KSPConfig.kt for all available options. moduleName = "main" - sourceRoots = listOf(File("/path/to/src1), File("/path/to/src2")) + sourceRoots = listOf(File("/path/to/src1"), File("/path/to/src2")) kotlinOutputDir = File("/path/to/kotlin/out") - ... + // ... }.build() // Run! val exitCode = KotlinSymbolProcessing(kspConfig, listOfProcessors, kspLoggerImpl).execute() -``` \ No newline at end of file +```