-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle Kotlin source sets from Kotlin compilations more lazily
- Loading branch information
Showing
4 changed files
with
44 additions
and
25 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KgpUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.google.devtools.ksp.gradle | ||
|
||
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation | ||
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet | ||
import org.jetbrains.kotlin.gradle.utils.ObservableSet | ||
|
||
internal val KotlinCompilation<*>.allKotlinSourceSetsObservable | ||
get() = this.allKotlinSourceSets as ObservableSet<KotlinSourceSet> | ||
|
||
internal val KotlinCompilation<*>.kotlinSourceSetsObservable | ||
get() = this.kotlinSourceSets as ObservableSet<KotlinSourceSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters