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)