Merge branch '3.1.x' into 3.2.x

Closes gh-40544
This commit is contained in:
Andy Wilkinson 2024-04-26 16:21:49 +01:00
commit 023c104434

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -33,6 +33,8 @@ import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.publish.PublishingExtension;
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;
import org.springframework.util.FileSystemUtils;
/**
* A plugin to make a project's {@code deployment} publication available as a Maven
* repository. The repository can be consumed by depending upon the project using the
@ -112,7 +114,7 @@ public class MavenRepositoryPlugin implements Plugin<Project> {
@Override
public void execute(Task task) {
task.getProject().delete(this.location);
FileSystemUtils.deleteRecursively(this.location);
}
}