Skip to content

Commit ed16163

Browse files
Nivaldo Bondançameta-codesync[bot]
authored andcommitted
Update gradle-ktfmt plugin to 0.24.0
Reviewed By: strulovich Differential Revision: D84646556 fbshipit-source-id: 4a0a29076f202ae09c0bbe136ec33ee5cc455acd
1 parent b3a2604 commit ed16163

5 files changed

Lines changed: 20 additions & 2 deletions

File tree

core/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ kotlin {
130130
}
131131
}
132132

133+
ktfmt {
134+
trailingCommaManagementStrategy.set(
135+
com.ncorti.ktfmt.gradle.TrailingCommaManagementStrategy.ONLY_ADD
136+
)
137+
}
138+
133139
group = "com.facebook"
134140

135141
version = rootProject.version

core/src/test/java/com/facebook/ktfmt/format/FormatterTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,6 @@ class FormatterTest {
31703170

31713171
@Test
31723172
fun `multiline trimIndent and trimMargin inside of function call`() {
3173-
defaultTestFormattingOptions = META_FORMAT
31743173
assertThatFormatting(
31753174
"""
31763175
|foo(
@@ -3197,6 +3196,7 @@ class FormatterTest {
31973196
|"""
31983197
.trimMargin()
31993198
)
3199+
.withOptions(META_FORMAT)
32003200
.isEqualTo(
32013201
"""
32023202
|foo(

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ com-google-code-gson-gson = "2.10.1"
1313
# plugins
1414
gradlePlugin-dokka = "2.0.0"
1515
gradlePlugin-intelliJPlatform = "2.6.0"
16-
gradlePlugin-ktfmt = "0.22.0"
16+
gradlePlugin-ktfmt = "0.24.0"
1717
gradlePlugin-nexusPublish = "2.0.0"
1818
gradlePlugin-shadowJar = "9.0.2"
1919

ktfmt_idea_plugin/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ dependencies {
5151
implementation(project(":ktfmt"))
5252
}
5353

54+
ktfmt {
55+
trailingCommaManagementStrategy.set(
56+
com.ncorti.ktfmt.gradle.TrailingCommaManagementStrategy.ONLY_ADD
57+
)
58+
}
59+
5460
intellijPlatform {
5561
projectName.set("ktfmt_idea_plugin")
5662

online_formatter/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ kotlin {
3939
jvmToolchain(javaVersion.toInt())
4040
}
4141

42+
ktfmt {
43+
trailingCommaManagementStrategy.set(
44+
com.ncorti.ktfmt.gradle.TrailingCommaManagementStrategy.ONLY_ADD
45+
)
46+
}
47+
4248
tasks {
4349
test { useJUnit() }
4450

0 commit comments

Comments
 (0)