From ca254e51f6a1e4be1a386cc009244df5f02275ab Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 8 Sep 2023 11:51:40 +0100 Subject: [PATCH] Start building against Spring Framework 6.0.12 snapshots See gh-37258 --- gradle.properties | 2 +- .../boot/context/config/ConfigDataLocationRuntimeHints.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 85c850b46f..ce029ec16d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8 kotlinVersion=1.7.22 nativeBuildToolsVersion=0.9.24 -springFrameworkVersion=6.0.11 +springFrameworkVersion=6.0.12-SNAPSHOT tomcatVersion=10.1.12 kotlin.stdlib.default.dependency=false diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationRuntimeHints.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationRuntimeHints.java index a3920df086..78f71e458d 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationRuntimeHints.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationRuntimeHints.java @@ -49,8 +49,10 @@ class ConfigDataLocationRuntimeHints implements RuntimeHintsRegistrar { logger.debug("Registering application configuration hints for " + fileNames + "(" + extensions + ") at " + locations); } - new FilePatternResourceHintsRegistrar(fileNames, locations, extensions).registerHints(hints.resources(), - classLoader); + FilePatternResourceHintsRegistrar.forClassPathLocations(locations) + .withFileExtensions(extensions) + .withFilePrefixes(fileNames) + .registerHints(hints.resources(), classLoader); } /**