From d44e03b8b0b5f9e43fa688d8a82bfba265008aac Mon Sep 17 00:00:00 2001 From: Jerome Prinet Date: Thu, 14 Oct 2021 14:52:42 +0200 Subject: [PATCH] Make ratTask cacheable --- gradle/validation/rat-sources.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gradle/validation/rat-sources.gradle b/gradle/validation/rat-sources.gradle index 0f9dff1059e..0dd0fbbfe8e 100644 --- a/gradle/validation/rat-sources.gradle +++ b/gradle/validation/rat-sources.gradle @@ -124,8 +124,12 @@ allprojects { /** * An Apache RAT adapter that validates whether files contain acceptable licenses. */ +@CacheableTask class RatTask extends DefaultTask { + @InputFiles + @PathSensitive(PathSensitivity.RELATIVE) + @IgnoreEmptyDirectories final ListProperty inputFileTrees = project.objects.listProperty(ConfigurableFileTree) @OutputFile