From bc0aa7d67b302f1ff4bf19b49cf65a0166e06c97 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 22 Sep 2023 11:30:14 +0100 Subject: [PATCH] Centralize configuration of springCloudVersion --- cloud/cloud-config-client/build.gradle | 4 ---- cloud/cloud-discovery-consul/build.gradle | 4 ---- cloud/cloud-discovery-eureka/build.gradle | 4 ---- cloud/cloud-discovery-zookeeper/build.gradle | 4 ---- cloud/cloud-function-web/build.gradle | 4 ---- cloud/cloud-function-webflux/build.gradle | 4 ---- cloud/cloud-gateway/build.gradle | 4 ---- cloud/cloud-loadbalancing-web/build.gradle | 4 ---- cloud/cloud-loadbalancing-webflux/build.gradle | 4 ---- cloud/cloud-openfeign/build.gradle | 4 ---- cloud/cloud-stream-kafka/build.gradle | 4 ---- cloud/cloud-stream-pulsar/build.gradle | 1 - cloud/cloud-stream-rabbit/build.gradle | 4 ---- cloud/cloud-task/build.gradle | 4 ---- gradle.properties | 1 + 15 files changed, 1 insertion(+), 53 deletions(-) diff --git a/cloud/cloud-config-client/build.gradle b/cloud/cloud-config-client/build.gradle index be54ba65..258b7d94 100644 --- a/cloud/cloud-config-client/build.gradle +++ b/cloud/cloud-config-client/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-discovery-consul/build.gradle b/cloud/cloud-discovery-consul/build.gradle index 300987c6..6d8f1fae 100644 --- a/cloud/cloud-discovery-consul/build.gradle +++ b/cloud/cloud-discovery-consul/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-discovery-eureka/build.gradle b/cloud/cloud-discovery-eureka/build.gradle index ae144765..97844e94 100644 --- a/cloud/cloud-discovery-eureka/build.gradle +++ b/cloud/cloud-discovery-eureka/build.gradle @@ -9,10 +9,6 @@ repositories { maven { url "https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidates" } } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-discovery-zookeeper/build.gradle b/cloud/cloud-discovery-zookeeper/build.gradle index 1ed958d1..a637e554 100644 --- a/cloud/cloud-discovery-zookeeper/build.gradle +++ b/cloud/cloud-discovery-zookeeper/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-function-web/build.gradle b/cloud/cloud-function-web/build.gradle index 049cf1a3..78eccade 100644 --- a/cloud/cloud-function-web/build.gradle +++ b/cloud/cloud-function-web/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-function-webflux/build.gradle b/cloud/cloud-function-webflux/build.gradle index bd5db8c6..e5d33170 100644 --- a/cloud/cloud-function-webflux/build.gradle +++ b/cloud/cloud-function-webflux/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-gateway/build.gradle b/cloud/cloud-gateway/build.gradle index cb091bbd..c5630ed3 100644 --- a/cloud/cloud-gateway/build.gradle +++ b/cloud/cloud-gateway/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-loadbalancing-web/build.gradle b/cloud/cloud-loadbalancing-web/build.gradle index b7a90bdf..855d07e1 100644 --- a/cloud/cloud-loadbalancing-web/build.gradle +++ b/cloud/cloud-loadbalancing-web/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-loadbalancing-webflux/build.gradle b/cloud/cloud-loadbalancing-webflux/build.gradle index 217a22a1..d569383f 100644 --- a/cloud/cloud-loadbalancing-webflux/build.gradle +++ b/cloud/cloud-loadbalancing-webflux/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-openfeign/build.gradle b/cloud/cloud-openfeign/build.gradle index efc75841..3a6ab6b1 100644 --- a/cloud/cloud-openfeign/build.gradle +++ b/cloud/cloud-openfeign/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-stream-kafka/build.gradle b/cloud/cloud-stream-kafka/build.gradle index cfcb93cb..1ada2710 100644 --- a/cloud/cloud-stream-kafka/build.gradle +++ b/cloud/cloud-stream-kafka/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-stream-pulsar/build.gradle b/cloud/cloud-stream-pulsar/build.gradle index 0fe60a91..adac20f4 100644 --- a/cloud/cloud-stream-pulsar/build.gradle +++ b/cloud/cloud-stream-pulsar/build.gradle @@ -6,7 +6,6 @@ plugins { } ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") set("springPulsarVersion", "0.2.1-SNAPSHOT") } diff --git a/cloud/cloud-stream-rabbit/build.gradle b/cloud/cloud-stream-rabbit/build.gradle index c11c7b8e..85750d40 100644 --- a/cloud/cloud-stream-rabbit/build.gradle +++ b/cloud/cloud-stream-rabbit/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/cloud/cloud-task/build.gradle b/cloud/cloud-task/build.gradle index 8c84fedc..5696e410 100644 --- a/cloud/cloud-task/build.gradle +++ b/cloud/cloud-task/build.gradle @@ -5,10 +5,6 @@ plugins { id "org.graalvm.buildtools.native" } -ext { - set("springCloudVersion", "2022.0.2-SNAPSHOT") -} - dependencies { implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation(platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")) diff --git a/gradle.properties b/gradle.properties index 6b86d831..c898a3f0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,3 +8,4 @@ kotlinVersion=1.7.22 javaFormatVersion=0.0.38 nbtVersion=0.9.23 springBootVersion=3.0.12-SNAPSHOT +springCloudVersion=2022.0.2-SNAPSHOT