Skip to content

Commit

Permalink
Update ksp2entrypoints.md
Browse files Browse the repository at this point in the history
(cherry picked from commit 1041213)
  • Loading branch information
edrd-f authored and KSP Auto Pick committed Jun 5, 2024
1 parent f08bc85 commit 0c63983
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/ksp2entrypoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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()
```
```

0 comments on commit 0c63983

Please sign in to comment.