From 48672d4efb89fc6a20a4f1e380b6cd3ec80adf0a Mon Sep 17 00:00:00 2001 From: Tyler Bertrand Date: Fri, 21 Jun 2024 16:45:22 -0500 Subject: [PATCH] Update LombokConfig.getInputPaths input property to use relative paths instead of absolute Using absolute paths for this property causes the task to re-execute when the absolute paths of the inputPaths changes (if the project is moved to another directory, or the build is executed from a different path in a CI machine, for instance), even when none of the inputs have changed otherwise. --- .../io/freefair/gradle/plugins/lombok/tasks/LombokConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lombok-plugin/src/main/java/io/freefair/gradle/plugins/lombok/tasks/LombokConfig.java b/lombok-plugin/src/main/java/io/freefair/gradle/plugins/lombok/tasks/LombokConfig.java index 953ae10d..7535159f 100644 --- a/lombok-plugin/src/main/java/io/freefair/gradle/plugins/lombok/tasks/LombokConfig.java +++ b/lombok-plugin/src/main/java/io/freefair/gradle/plugins/lombok/tasks/LombokConfig.java @@ -103,7 +103,7 @@ public LombokConfig() { protected List getInputPaths() { return getPaths().getFiles() .stream() - .map(File::getPath) + .map(getProject()::relativePath) .collect(Collectors.toList()); }