From 3ab47ce5c067e7b9bf416f9b0797859318748120 Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 9 Jun 2024 18:32:46 -0400 Subject: [PATCH] Update Project.java --- ui/src/main/java/org/eclipse/starter/ui/Project.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/main/java/org/eclipse/starter/ui/Project.java b/ui/src/main/java/org/eclipse/starter/ui/Project.java index 046ce0b..1fb5d00 100644 --- a/ui/src/main/java/org/eclipse/starter/ui/Project.java +++ b/ui/src/main/java/org/eclipse/starter/ui/Project.java @@ -400,7 +400,7 @@ public void generate() { LOGGER.info("Downloading zip file."); downloadZip(new File(workingDirectory, artifactId + ".zip")); - // caching makes only sense if defaults weren't changed since otherwise it's unlikely to hit cache + // Caching makes only sense if defaults weren't changed since otherwise it's unlikely to hit cache. if (groupId.equals(DEFAULT_GROUPID) && artifactId.equals(DEFAULT_ARTIFACTID)) { LOGGER.info("Caching output."); cache.put(getCacheKey(), workingDirectory.getAbsolutePath()); @@ -420,7 +420,7 @@ public void generate() { } private String getCacheKey() { - return jakartaVersion + ":" + profile + ":" + javaVersion + ":" + docker + ":" + runtime; + return jakartaVersion + ":" + profile + ":" + javaVersion + ":" + docker + ":" + runtime + ":" + groupId + ":" + artifactId; } private void downloadZip(File zip) {