Skip to content

Commit

Permalink
Merge pull request #324 from charleskorn/renovate/org.snakeyaml-snake…
Browse files Browse the repository at this point in the history
…yaml-engine-2.x

Update dependency org.snakeyaml:snakeyaml-engine to v2.4
  • Loading branch information
charleskorn authored Sep 6, 2022
2 parents 3a61198 + 0a18a0d commit feb92d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ kotlin {
dependencies {
implementation(project.dependencies.platform("org.jetbrains.kotlin:kotlin-bom"))
implementation(kotlin("stdlib-jdk8"))
implementation("org.snakeyaml:snakeyaml-engine:2.3")
implementation("org.snakeyaml:snakeyaml-engine:2.4")
}
}

Expand Down
1 change: 1 addition & 0 deletions src/jvmMain/kotlin/com/charleskorn/kaml/YamlOutput.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ internal class YamlOutput(
private val configuration: YamlConfiguration
) : AbstractEncoder(), AutoCloseable {
private val settings = DumpSettings.builder()
.setDumpComments(true)
// SnakeYAML validates that this value must be at least 1
.setIndent(configuration.encodingIndentationSize)
// SnakeYAML helps to validate that this value must be non-negative
Expand Down

0 comments on commit feb92d2

Please sign in to comment.