Skip to content

Commit

Permalink
Update Project.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Rahman authored Jun 9, 2024
1 parent 453aa91 commit 3ab47ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/main/java/org/eclipse/starter/ui/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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) {
Expand Down

0 comments on commit 3ab47ce

Please # to comment.