Skip to content

Commit ae2fa7c

Browse files
author
Dave Syer
committed
Fix immutable list error
Fixes gh-117
1 parent bde330b commit ae2fa7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gradle-plugin/src/main/java/org/springframework/boot/experimental/gradle/ThinLauncherPlugin.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.io.File;
2020
import java.nio.file.Files;
21+
import java.util.ArrayList;
2122
import java.util.Arrays;
2223
import java.util.HashMap;
2324
import java.util.List;
@@ -250,9 +251,9 @@ public void execute(Task task) {
250251
exec.setWorkingDir(
251252
copy.getOutputs().getFiles().getSingleFile());
252253
exec.setCommandLine(Jvm.current().getJavaExecutable());
253-
List<String> args = Arrays.asList("-Dthin.root=.",
254-
"-Dthin.dryrun", "-jar",
255-
thinJar.getArchiveName());
254+
List<String> args = new ArrayList<>(
255+
Arrays.asList("-Dthin.root=.", "-Dthin.dryrun",
256+
"-jar", thinJar.getArchiveName()));
256257
String thinRepo = getThinRepo(project);
257258
if (thinRepo != null) {
258259
args.add(1, "-Dthin.repo=" + thinRepo);

0 commit comments

Comments
 (0)