Skip to content

Commit 3d9c11f

Browse files
committed
apply laurit's comment
1 parent a33b101 commit 3d9c11f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

smoke-tests-otel-starter/spring-boot-2/build.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ plugins {
44

55
description = "smoke-tests-otel-starter-spring-boot-2"
66

7+
val testLatestDeps = gradle.startParameter.projectProperties["testLatestDeps"] == "true"
8+
val springBootVersion = if (testLatestDeps) "2.+" else "2.6.15"
9+
710
dependencies {
811
implementation("org.springframework.boot:spring-boot-starter-web")
912
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
@@ -13,8 +16,7 @@ dependencies {
1316
implementation("org.springframework.kafka:spring-kafka")
1417
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
1518
implementation("org.springframework.boot:spring-boot-starter-aop")
16-
val testLatestDeps = gradle.startParameter.projectProperties["testLatestDeps"] == "true"
17-
implementation(platform("org.springframework.boot:spring-boot-dependencies:" + if (testLatestDeps) "2.+" else "2.6.15"))
19+
implementation(platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion"))
1820

1921
implementation(project(":smoke-tests-otel-starter:spring-boot-common"))
2022

@@ -38,8 +40,8 @@ testing {
3840
dependencies {
3941
implementation(project())
4042
implementation(project(":smoke-tests-otel-starter:spring-boot-common"))
41-
implementation("org.springframework.boot:spring-boot-starter-web:2.7.18")
42-
implementation("org.springframework.boot:spring-boot-starter-test:2.7.18")
43+
implementation("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
44+
implementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
4345
}
4446
}
4547
}

0 commit comments

Comments
 (0)