Skip to content

Commit

Permalink
Add PathSensitivity for all InputFile and OutputFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkumar9t2 committed Nov 9, 2023
1 parent baa9789 commit ce5f301
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ abstract class ComputeWorkspaceDependenciesTask : DefaultTask() {
abstract val compileDependenciesJsons: ListProperty<RegularFile>

@get:OutputFile
@get:PathSensitive(PathSensitivity.RELATIVE)
abstract val workspaceDependencies: RegularFileProperty

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ constructor(
val buildifierScript: RegularFileProperty = objectFactory.fileProperty()

@get:OutputFile
@get:PathSensitive(PathSensitivity.RELATIVE)
val outputFile: RegularFileProperty = objectFactory.fileProperty()

@TaskAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import org.gradle.api.provider.SetProperty
import org.gradle.api.tasks.CacheableTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.PathSensitive
import org.gradle.api.tasks.PathSensitivity
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.TaskProvider
import org.gradle.kotlin.dsl.register
Expand All @@ -45,6 +47,7 @@ constructor(
val allRepositories: SetProperty<Repository> = objectFactory.setProperty()

@get:OutputFile
@get:PathSensitive(PathSensitivity.RELATIVE)
val outputFile: RegularFileProperty = objectFactory.fileProperty()

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ internal abstract class ResolveVariantDependenciesTask : DefaultTask() {
abstract val kotlinCompilerPluginConfiguration: ListProperty<ResolvedComponentResult>

@get:OutputFile
@get:PathSensitive(PathSensitivity.RELATIVE)
abstract val resolvedDependencies: RegularFileProperty

@get:InputFiles
Expand Down

0 comments on commit ce5f301

Please sign in to comment.