Skip to content

Commit 927e7db

Browse files
committed
Polish "Use ClassLoader with ArchitectureCheck"
See gh-45202
1 parent bb3cf6c commit 927e7db

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: buildSrc/src/main/java/org/springframework/boot/build/architecture/ArchitectureCheck.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private void withCompileClasspath(Callable<?> callable) throws Exception {
125125
}
126126

127127
private void writeViolationReport(List<EvaluationResult> violations, File outputFile) throws IOException {
128-
Files.createDirectories(outputFile.getParentFile().toPath());
128+
outputFile.getParentFile().mkdirs();
129129
StringBuilder report = new StringBuilder();
130130
for (EvaluationResult violation : violations) {
131131
report.append(violation.getFailureReport());

Diff for: buildSrc/src/test/java/org/springframework/boot/build/architecture/ArchitectureCheckTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ private void runGradleWithCompiledClasses(String path, Consumer<GradleRunner> ca
231231
private void runGradle(Consumer<GradleRunner> callback) {
232232
callback.accept(GradleRunner.create()
233233
.withProjectDir(this.projectDir.toFile())
234-
// .withArguments("checkArchitectureMain", "-Dorg.gradle.debug=true")
235234
.withArguments("checkArchitectureMain")
236235
.withPluginClasspath());
237236
}

0 commit comments

Comments
 (0)