From 506ce83e0c0b74c8a92352495eae33a593adf529 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Tue, 13 Feb 2024 09:21:32 -0800 Subject: [PATCH] Update getScopedArtifacts with PathSensitive Bug: N/A Test: existing tests Change-Id: I941d5c8b952da7c2f495843770436593f0d1db46 --- .../build-logic/plugins/src/main/kotlin/CheckClassesTask.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes/getScopedArtifacts/build-logic/plugins/src/main/kotlin/CheckClassesTask.kt b/recipes/getScopedArtifacts/build-logic/plugins/src/main/kotlin/CheckClassesTask.kt index b19bd3a6..47b6551b 100644 --- a/recipes/getScopedArtifacts/build-logic/plugins/src/main/kotlin/CheckClassesTask.kt +++ b/recipes/getScopedArtifacts/build-logic/plugins/src/main/kotlin/CheckClassesTask.kt @@ -21,6 +21,8 @@ import org.gradle.api.file.RegularFile import org.gradle.api.provider.ListProperty import org.gradle.api.tasks.InputFiles import org.gradle.api.tasks.OutputDirectory +import org.gradle.api.tasks.PathSensitive +import org.gradle.api.tasks.PathSensitivity import org.gradle.api.tasks.TaskAction import java.io.File import java.lang.RuntimeException @@ -40,24 +42,28 @@ abstract class CheckClassesTask: DefaultTask() { * Project scope, not including dependencies. */ @get:InputFiles + @get:PathSensitive(PathSensitivity.RELATIVE) abstract val projectDirectories: ListProperty /** * Project scope, not including dependencies. */ @get:InputFiles + @get:PathSensitive(PathSensitivity.NONE) abstract val projectJars: ListProperty /** * Full scope, including project scope and all dependencies. */ @get:InputFiles + @get:PathSensitive(PathSensitivity.RELATIVE) abstract val allDirectories: ListProperty /** * Full scope, including project scope and all dependencies. */ @get:InputFiles + @get:PathSensitive(PathSensitivity.NONE) abstract val allJars: ListProperty /**