From e52af0556afb2aa8d1cefa4a4935167625847375 Mon Sep 17 00:00:00 2001 From: Malte Heithoff Date: Mon, 28 Sep 2026 14:20:51 +0200 Subject: [PATCH] Fingerprint extraClasspathElements as classpath so build cache hits survive relocation --- .../main/java/de/monticore/gradle/common/CommonMCTask.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/se-commons-gradle/src/main/java/de/monticore/gradle/common/CommonMCTask.java b/se-commons-gradle/src/main/java/de/monticore/gradle/common/CommonMCTask.java index ddc1c89..c2a013c 100644 --- a/se-commons-gradle/src/main/java/de/monticore/gradle/common/CommonMCTask.java +++ b/se-commons-gradle/src/main/java/de/monticore/gradle/common/CommonMCTask.java @@ -130,7 +130,6 @@ public ConfigurableFileCollection getHwcDir(){ @InputFiles @Incremental // Incremental symbol path (such as MC generation the modelpath) @Optional - // Absolute, since this can contain elements from the gradle jar cache, outside the project @Classpath // The content of the jar file is normalized so that time stamps and order of the zip entries in the jar file do not matter public abstract ConfigurableFileCollection getIncrementalSymbolPath(); @@ -166,8 +165,7 @@ public ConfigurableFileCollection getHwcDir(){ @InputFiles @Optional - // Absolute, since this can contain elements from the gradle jar cache, outside the project - @PathSensitive(PathSensitivity.ABSOLUTE) + @Classpath // content and order matter, not the location (e.g. the gradle jar cache or another checkout) public abstract ConfigurableFileCollection getExtraClasspathElements(); // TODO: The MCGen Task adds the grammar dependency via -mp, // but we might also want to do this via a classloader