Skip to content

Commit ad51f0a

Browse files
committed
Fix Spotless for kotlin 2.1
1 parent 94cc3ed commit ad51f0a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Diff for: buildSrc/src/main/groovy/spring-starter.code-metrics.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ spotless {
1616
}
1717
)
1818
// see https://github.com/shyiko/ktlint#standard-rules
19-
ktlint()
19+
ktlint("1.5.0")
2020
}
2121
}

Diff for: spring-starter/build.gradle.kts

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ dependencies {
3535

3636
// Tests
3737
testImplementation(platform(libs.testcontainers.bom))
38-
testImplementation(libs.bundles.test.all)
38+
testImplementation(libs.bundles.test.all) {
39+
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
40+
}
3941
}
4042

4143
tasks {

Diff for: spring-starter/src/main/kotlin/com/yonatankarp/spring/starter/adapters/input/http/rest/HelloWorldHttpAdapter.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ import org.springframework.web.bind.annotation.RestController
1010
* Default endpoints per application.
1111
*/
1212
@RestController
13-
class HelloWorldHttpAdapter(private val helloWorldPort: HelloWorldPort) :
14-
DemoApiV1Api<Any> {
13+
class HelloWorldHttpAdapter(
14+
private val helloWorldPort: HelloWorldPort,
15+
) : DemoApiV1Api<Any> {
1516
override suspend fun helloWorld(): ResponseEntity<Any> =
1617
helloWorldPort.greet().let {
1718
ResponseEntity.ok(DemoResponse(it))

0 commit comments

Comments
 (0)