From 2896f672d6bee05f92f7e867710075e997d231f7 Mon Sep 17 00:00:00 2001 From: junhyung Date: Fri, 26 Jan 2024 04:41:24 +0900 Subject: [PATCH] Remove unused maven repository, add resource loader to bootstrapper --- settings.gradle.kts | 1 - .../kr/summitsystems/springbukkit/core/SpringBukkitPlugin.kt | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 22506cf..d4326a2 100755 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -27,7 +27,6 @@ dependencyResolutionManagement { repositories { mavenCentral() maven("https://repo.papermc.io/repository/maven-public/") - maven("https://repo.dmulloy2.net/repository/public/") } versionCatalogs { diff --git a/spring-bukkit-core/src/main/kotlin/kr/summitsystems/springbukkit/core/SpringBukkitPlugin.kt b/spring-bukkit-core/src/main/kotlin/kr/summitsystems/springbukkit/core/SpringBukkitPlugin.kt index 238fa3e..5292af6 100644 --- a/spring-bukkit-core/src/main/kotlin/kr/summitsystems/springbukkit/core/SpringBukkitPlugin.kt +++ b/spring-bukkit-core/src/main/kotlin/kr/summitsystems/springbukkit/core/SpringBukkitPlugin.kt @@ -9,6 +9,7 @@ import org.springframework.context.ApplicationContextInitializer import org.springframework.context.ConfigurableApplicationContext import org.springframework.core.annotation.AnnotationUtils import org.springframework.core.env.PropertiesPropertySource +import org.springframework.core.io.DefaultResourceLoader import org.springframework.core.io.FileSystemResource import java.io.File import java.util.* @@ -54,7 +55,7 @@ abstract class SpringBukkitPlugin : JavaPlugin(), ApplicationContextInitializer< private fun runApplication(applicationSource: Class<*>): ConfigurableApplicationContext { Thread.currentThread().contextClassLoader = this.classLoader - return SpringApplicationBuilder(applicationSource) + return SpringApplicationBuilder(DefaultResourceLoader(this.classLoader), applicationSource) .web(WebApplicationType.NONE) .bannerMode(Banner.Mode.OFF) .initializers(this)