Skip to content

Commit 17a56df

Browse files
committed
Enable INCLUDE_SOURCE_IN_LOCATION for CheckAdditionalSpringConfigurationMetadata task
1 parent 2421f02 commit 17a56df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildSrc/src/main/java/org/springframework/boot/build/context/properties/CheckAdditionalSpringConfigurationMetadata.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.gradle.api.tasks.SourceTask;
3838
import org.gradle.api.tasks.TaskAction;
3939
import org.gradle.api.tasks.VerificationException;
40+
import tools.jackson.core.StreamReadFeature;
4041
import tools.jackson.databind.json.JsonMapper;
4142

4243
/**
@@ -75,7 +76,7 @@ void check() throws IOException {
7576

7677
@SuppressWarnings("unchecked")
7778
private Report createReport() {
78-
JsonMapper jsonMapper = new JsonMapper();
79+
JsonMapper jsonMapper = JsonMapper.builder().enable(StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION).build();
7980
Report report = new Report();
8081
for (File file : getSource().getFiles()) {
8182
Analysis analysis = report.analysis(this.projectDir.toPath().relativize(file.toPath()));

0 commit comments

Comments
 (0)