@@ -4,6 +4,9 @@ plugins {
44
55description = " smoke-tests-otel-starter-spring-boot-2"
66
7+ val testLatestDeps = gradle.startParameter.projectProperties[" testLatestDeps" ] == " true"
8+ val springBoot2Version = if (testLatestDeps) " 2.+" else " 2.6.15"
9+
710dependencies {
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:$springBoot2Version " ))
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:$springBoot2Version " )
44+ implementation(" org.springframework.boot:spring-boot-starter-test:$springBoot2Version " )
4345 }
4446 }
4547 }
0 commit comments