|
1 | 1 | /*
|
2 |
| - * Copyright 2012-2024 the original author or authors. |
| 2 | + * Copyright 2012-2025 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
31 | 31 | import com.fasterxml.jackson.core.JsonParseException;
|
32 | 32 | import com.fasterxml.jackson.databind.JsonMappingException;
|
33 | 33 | import com.fasterxml.jackson.databind.ObjectMapper;
|
34 |
| -import org.gradle.api.GradleException; |
35 | 34 | import org.gradle.api.file.FileTree;
|
36 | 35 | import org.gradle.api.file.RegularFileProperty;
|
37 | 36 | import org.gradle.api.tasks.InputFiles;
|
|
40 | 39 | import org.gradle.api.tasks.PathSensitivity;
|
41 | 40 | import org.gradle.api.tasks.SourceTask;
|
42 | 41 | import org.gradle.api.tasks.TaskAction;
|
| 42 | +import org.gradle.api.tasks.VerificationException; |
43 | 43 |
|
44 | 44 | /**
|
45 | 45 | * {@link SourceTask} that checks additional Spring configuration metadata files.
|
@@ -70,7 +70,7 @@ void check() throws JsonParseException, IOException {
|
70 | 70 | File reportFile = getReportLocation().get().getAsFile();
|
71 | 71 | Files.write(reportFile.toPath(), report, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
|
72 | 72 | if (report.hasProblems()) {
|
73 |
| - throw new GradleException( |
| 73 | + throw new VerificationException( |
74 | 74 | "Problems found in additional Spring configuration metadata. See " + reportFile + " for details.");
|
75 | 75 | }
|
76 | 76 | }
|
|
0 commit comments