Commit 7d3ac266 authored by Phillip Webb's avatar Phillip Webb

Fix GrapesCleaner to work with renamed artifacts

parent 05171f6a
...@@ -30,13 +30,10 @@ public class GrapesCleaner { ...@@ -30,13 +30,10 @@ public class GrapesCleaner {
public static void cleanIfNecessary() throws Exception { public static void cleanIfNecessary() throws Exception {
File installedJar = new File(getMavenRepository(), String.format( File installedJar = new File(getMavenRepository(), String.format(
"org/springframework/boot/spring-boot-strap/%s/spring-boot-strap-%s.jar", "org/springframework/boot/spring-boot/%s/spring-boot-%s.jar", VERSION,
VERSION, VERSION)); VERSION));
File grapesJar = new File( File grapesJar = new File(getGrapesCache(), String.format(
getGrapesCache(), "org.springframework.boot/spring-boot/jars/spring-boot-%s.jar", VERSION));
String.format(
"org.springframework.boot/spring-boot-strap/jars/spring-boot-strap-%s.jar",
VERSION));
if (!VERSION.contains("SNAPSHOT") || installedJar.exists() && grapesJar.exists() if (!VERSION.contains("SNAPSHOT") || installedJar.exists() && grapesJar.exists()
&& installedJar.lastModified() <= grapesJar.lastModified()) { && installedJar.lastModified() <= grapesJar.lastModified()) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment