Skip to content

Commit

Permalink
Update for newer Gradle incremental API
Browse files Browse the repository at this point in the history
by marking KspTaskJvm.classpathStructure with @incremental. Otherwise
it'd be alwyas treated as unknown changes.

https://docs.gradle.org/7.2/userguide/custom_tasks.html#incremental_tasks
(cherry picked from commit 70f63a8)
  • Loading branch information
ting-yuan committed Oct 7, 2021
1 parent 8ef025b commit b6e4cc0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.language.jvm.tasks.ProcessResources
import org.gradle.tooling.provider.model.ToolingModelBuilderRegistry
import org.gradle.util.GradleVersion
import org.gradle.work.Incremental
import org.jetbrains.kotlin.cli.common.arguments.*
import org.jetbrains.kotlin.gradle.dsl.*
import org.jetbrains.kotlin.gradle.internal.CompilerArgumentsContributor
Expand Down Expand Up @@ -476,6 +477,7 @@ abstract class KspTaskJvm : KotlinCompile(KotlinJvmOptionsImpl()), KspTask {
@get:PathSensitive(PathSensitivity.NONE)
@get:Optional
@get:InputFiles
@get:Incremental
abstract val classpathStructure: ConfigurableFileCollection

@get:Input
Expand Down

0 comments on commit b6e4cc0

Please sign in to comment.