Adapt to breaking changes to AotProcessor settings

See gh-32696
This commit is contained in:
Andy Wilkinson
2022-10-18 17:42:00 +01:00
parent d53c2b25d0
commit 7bae02be2d
3 changed files with 7 additions and 7 deletions

View File

@@ -52,8 +52,8 @@ public class SpringBootTestAotProcessor extends TestAotProcessor {
.formatted(TestAotProcessor.class.getName()));
Set<Path> classpathRoots = Arrays.stream(args[0].split(File.pathSeparator)).map(Paths::get)
.collect(Collectors.toSet());
Settings settings = new Settings().setSourceOutput(Paths.get(args[1])).setResourceOutput(Paths.get(args[2]))
.setClassOutput(Paths.get(args[3])).setGroupId(args[4]).setArtifactId(args[5]);
Settings settings = Settings.builder().sourceOutput(Paths.get(args[1])).resourceOutput(Paths.get(args[2]))
.classOutput(Paths.get(args[3])).groupId(args[4]).artifactId(args[5]).build();
new SpringBootTestAotProcessor(classpathRoots, settings).process();
}