Skip to content

Commit

Permalink
deps: update hoplite to v2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and sschuberth committed Sep 30, 2024
1 parent a8bff04 commit f5733dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ flexmark = "0.64.8"
freemarker = "2.3.33"
greenmail = "2.0.1"
hikari = "6.0.0"
hoplite = "2.7.5"
hoplite = "2.8.2"
jackson = "2.18.0"
jakartaMail = "2.0.1"
jgit = "6.10.0.202406032230-r"
Expand Down
3 changes: 2 additions & 1 deletion model/src/main/kotlin/config/OrtConfiguration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.sksamuel.hoplite.ConfigLoaderBuilder
import com.sksamuel.hoplite.PropertySource
import com.sksamuel.hoplite.addEnvironmentSource
import com.sksamuel.hoplite.fp.getOrElse
import com.sksamuel.hoplite.resolver.context.ContextResolverMode

import java.io.File

Expand Down Expand Up @@ -172,7 +173,7 @@ data class OrtConfiguration(
val loader = ConfigLoaderBuilder.default()
.addEnvironmentSource()
.addPropertySources(sources)
.allowUnresolvedSubstitutions()
.withContextResolverMode(ContextResolverMode.SkipUnresolved)
.build()

val config = loader.loadConfig<OrtConfigurationWrapper>()
Expand Down

0 comments on commit f5733dc

Please sign in to comment.