Fix GrapesCleaner to work with renamed artifacts
This commit is contained in:
@@ -30,13 +30,10 @@ public class GrapesCleaner {
|
||||
|
||||
public static void cleanIfNecessary() throws Exception {
|
||||
File installedJar = new File(getMavenRepository(), String.format(
|
||||
"org/springframework/boot/spring-boot-strap/%s/spring-boot-strap-%s.jar",
|
||||
VERSION, VERSION));
|
||||
File grapesJar = new File(
|
||||
getGrapesCache(),
|
||||
String.format(
|
||||
"org.springframework.boot/spring-boot-strap/jars/spring-boot-strap-%s.jar",
|
||||
VERSION));
|
||||
"org/springframework/boot/spring-boot/%s/spring-boot-%s.jar", VERSION,
|
||||
VERSION));
|
||||
File grapesJar = new File(getGrapesCache(), String.format(
|
||||
"org.springframework.boot/spring-boot/jars/spring-boot-%s.jar", VERSION));
|
||||
if (!VERSION.contains("SNAPSHOT") || installedJar.exists() && grapesJar.exists()
|
||||
&& installedJar.lastModified() <= grapesJar.lastModified()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user