Skip to content

Commit

Permalink
Remove unused maven repository, add resource loader to bootstrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
vjh0107 committed Jan 25, 2024
1 parent 2bd0325 commit 2896f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ dependencyResolutionManagement {
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.dmulloy2.net/repository/public/")
}

versionCatalogs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2896f67

Please sign in to comment.