Skip to content

Commit 0456c5c

Browse files
committed
Configure Gradle build to use Spring Boot version from BOM_COORDINATES
Signed-off-by: Roy Clarkson <[email protected]>
1 parent b153473 commit 0456c5c

File tree

8 files changed

+35
-11
lines changed

8 files changed

+35
-11
lines changed

build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
buildscript {
1818
ext {
19-
// Spring Dependencies
20-
springBootVersion = "3.5.0"
21-
2219
// External Dependencies
2320
beanUtilsVersion = "1.11.0"
2421

spring-cloud-open-service-broker-acceptance-webflux/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
18+
1719
plugins {
1820
id 'org.springframework.boot'
1921
}
2022

2123
description = "Spring Cloud Open Service Broker Acceptance WebFlux"
2224

2325
dependencies {
24-
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
26+
implementation platform(SpringBootPlugin.BOM_COORDINATES)
2527
implementation 'org.springframework.boot:spring-boot-starter'
2628
implementation 'org.springframework.boot:spring-boot-starter-webflux'
2729
implementation project(':spring-cloud-starter-open-service-broker')

spring-cloud-open-service-broker-acceptance-webmvc/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
18+
1719
plugins {
1820
id 'org.springframework.boot'
1921
}
2022

2123
description = "Spring Cloud Open Service Broker Acceptance WebMvc"
2224

2325
dependencies {
24-
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
26+
implementation platform(SpringBootPlugin.BOM_COORDINATES)
2527
implementation 'org.springframework.boot:spring-boot-starter'
2628
implementation 'org.springframework.boot:spring-boot-starter-web'
2729
implementation project(':spring-cloud-starter-open-service-broker')

spring-cloud-open-service-broker-autoconfigure/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
18+
19+
plugins {
20+
id 'org.springframework.boot' apply false
21+
}
22+
1723
description = "Spring Cloud Open Service Broker Auto-Configuration"
1824

1925
dependencies {
2026
// BOM imports - The versions used in these files will override any other versions found in the graph
21-
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
22-
annotationProcessor platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
27+
implementation platform(SpringBootPlugin.BOM_COORDINATES)
28+
annotationProcessor platform(SpringBootPlugin.BOM_COORDINATES)
2329

2430
api project(':spring-cloud-open-service-broker-core')
2531
optionalApi 'org.springframework.boot:spring-boot-starter-web'

spring-cloud-open-service-broker-contract-tests/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
1718
import org.springframework.cloud.contract.verifier.config.TestFramework
1819
import org.springframework.cloud.contract.verifier.config.TestMode
1920

2021
plugins {
22+
id 'org.springframework.boot' apply false
2123
id 'groovy'
2224
id 'org.springframework.cloud.contract' version "${springCloudContractVersion}"
2325
}
@@ -49,7 +51,7 @@ dependencies {
4951
}
5052

5153
implementation platform("org.springframework.cloud:spring-cloud-contract-dependencies:${springCloudContractVersion}")
52-
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
54+
implementation platform(SpringBootPlugin.BOM_COORDINATES)
5355
testImplementation project(':spring-cloud-starter-open-service-broker')
5456
testImplementation 'org.springframework.boot:spring-boot-starter-web'
5557
testImplementation 'org.springframework.boot:spring-boot-starter-webflux'

spring-cloud-open-service-broker-core/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
18+
19+
plugins {
20+
id 'org.springframework.boot' apply false
21+
}
22+
1723
description = "Spring Cloud Open Service Broker Core"
1824

1925
dependencies {
2026
// BOM imports - The versions used in these files will override any other versions found in the graph
21-
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
27+
implementation platform(SpringBootPlugin.BOM_COORDINATES)
2228

2329
compileOnly 'jakarta.servlet:jakarta.servlet-api'
2430
api 'org.springframework:spring-context'

spring-cloud-open-service-broker-docs/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
18+
1719
plugins {
20+
id 'org.springframework.boot' apply false
1821
id 'org.asciidoctor.jvm.pdf'
1922
id 'org.asciidoctor.jvm.convert'
2023
}
@@ -27,7 +30,7 @@ configurations {
2730

2831
dependencies {
2932
// BOM imports - The versions used in these files will override any other versions found in the graph
30-
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
33+
implementation platform(SpringBootPlugin.BOM_COORDINATES)
3134

3235
implementation project(':spring-cloud-open-service-broker-core')
3336
implementation 'org.springframework.boot:spring-boot-starter'

spring-cloud-starter-open-service-broker/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
18+
19+
plugins {
20+
id 'org.springframework.boot' apply false
21+
}
22+
1723
description = "Spring Cloud Open Service Broker Starter"
1824

1925
dependencies {
2026
// BOM imports - The versions used in these files will override any other versions found in the graph
21-
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
27+
implementation platform(SpringBootPlugin.BOM_COORDINATES)
2228

2329
api 'org.springframework.boot:spring-boot-starter'
2430
api project(':spring-cloud-open-service-broker-autoconfigure')

0 commit comments

Comments
 (0)