Skip to content

Commit 60f5536

Browse files
sugmanueianbotsf
andauthored
style: properly indent the dependencies in the gradle file (#1280)
* style: properly indent the dependencies in the gradle file * retrigger CI --------- Co-authored-by: Ian Botsford <[email protected]>
1 parent 378e30e commit 60f5536

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "14965afd-c9f4-48b0-a053-de860b81ecd2",
3+
"type": "style",
4+
"description": "Properly indent the dependencies in the gradle file and add some new lines to separate sections"
5+
}

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/GradleGenerator.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fun renderKmpGradleBuild(
9595
#W
9696
}
9797
#W
98-
98+
9999
kotlin {
100100
#W
101101
#W
@@ -165,14 +165,17 @@ fun renderJvmGradleBuild(
165165
plugins {
166166
#W
167167
}
168+
168169
#W
169170
170171
dependencies {
171172
#W
172173
}
174+
173175
val optInAnnotations = listOf(
174176
#W
175177
)
178+
176179
kotlin {
177180
#W
178181
sourceSets.all {
@@ -223,7 +226,7 @@ private fun renderDependencies(writer: GradleWriter, scope: Scope, isKmp: Boolea
223226
}
224227
.forEach { dependency ->
225228
writer.write(
226-
"${dependency.config}(\"#L:#L:#L\")",
229+
"${writer.indentText}${dependency.config}(\"#L:#L:#L\")",
227230
dependency.group,
228231
dependency.artifact,
229232
dependency.version,

0 commit comments

Comments
 (0)