Skip to content

Commit

Permalink
Set dependencies for KSP task.
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan committed Nov 10, 2020
1 parent 41246c2 commit 64e7f0f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class KspGradleSubplugin @Inject internal constructor(private val registry: Tool
kspTask.mapClasspath { kotlinCompileProvider.get().classpath }
kspTask.options = options
kspTask.outputs.dirs(kotlinOutputDir, javaOutputDir, classOutputDir)
kspTask.dependsOn(kspConfiguration.buildDependencies)
}.apply {
configure {
kotlinCompilation.allKotlinSourceSets.forEach { sourceSet -> it.source(sourceSet.kotlin) }
Expand Down

0 comments on commit 64e7f0f

Please sign in to comment.