File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
buildSrc/src/main/java/org/springframework/boot/build/mavenplugin Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,16 @@ public abstract class PrepareMavenBinaries extends DefaultTask {
4040
4141 @ TaskAction
4242 public void prepareBinaries () {
43- for (String version : getVersions ().get ()) {
44- Configuration configuration = getProject ().getConfigurations ()
45- .detachedConfiguration (
46- getProject ().getDependencies ().create ("org.apache.maven:apache-maven:" + version + ":bin@zip" ));
47- getProject ()
48- .copy ((copy ) -> copy .into (getOutputDir ()).from (getProject ().zipTree (configuration .getSingleFile ())));
49- }
43+ getProject ().sync ((sync ) -> {
44+ sync .into (getOutputDir ());
45+ for (String version : getVersions ().get ()) {
46+ Configuration configuration = getProject ().getConfigurations ()
47+ .detachedConfiguration (getProject ().getDependencies ()
48+ .create ("org.apache.maven:apache-maven:" + version + ":bin@zip" ));
49+ sync .from (getProject ().zipTree (configuration .getSingleFile ()));
50+ }
51+ });
52+
5053 }
5154
5255}
You can’t perform that action at this time.
0 commit comments