Skip to content

Commit 7d26399

Browse files
committed
centralize vertx version
Former-commit-id: 3d60150
1 parent 085dc56 commit 7d26399

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ repositories {
3030
}
3131

3232
subprojects {
33+
ext {
34+
set("vertxVersion", "4.0.2")
35+
}
36+
3337
repositories {
3438
mavenCentral()
3539
jcenter()

plugin/jetbrains/build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ plugins {
99
id("maven-publish")
1010
}
1111

12+
val vertxVersion = ext.get("vertxVersion")
13+
1214
// Import variables from gradle.properties file
1315
val pluginGroup: String by project
1416
val pluginName: String by project
@@ -54,7 +56,6 @@ dependencies {
5456
implementation(project(":protocol"))
5557
implementation(project(":portal"))
5658

57-
val vertxVersion = "4.0.2"
5859
implementation("com.github.sh5i:git-stein:v0.5.0")
5960
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
6061
implementation("io.vertx:vertx-core:$vertxVersion")

portal/build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ plugins {
33
kotlin("plugin.serialization") version "1.4.31"
44
}
55

6+
val vertxVersion = ext.get("vertxVersion")
7+
68
kotlin {
79
jvm { }
810
js {
@@ -24,7 +26,6 @@ kotlin {
2426
}
2527
val jvmMain by getting {
2628
dependencies {
27-
val vertxVersion = "4.0.2"
2829
implementation(kotlin("stdlib-jdk8"))
2930
implementation(project(":protocol"))
3031
implementation("org.slf4j:slf4j-api:1.7.30")

protocol/build.gradle.kts

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ plugins {
55
id("java")
66
}
77

8+
val vertxVersion = ext.get("vertxVersion")
9+
810
kotlin {
911
jvm { }
1012
js {
@@ -27,7 +29,6 @@ kotlin {
2729
}
2830
val jvmMain by getting {
2931
dependencies {
30-
val vertxVersion = "4.0.2"
3132
implementation("io.vertx:vertx-core:$vertxVersion")
3233
implementation("io.vertx:vertx-codegen:$vertxVersion")
3334
implementation("io.vertx:vertx-service-proxy:$vertxVersion")
@@ -40,7 +41,6 @@ kotlin {
4041
}
4142
val jvmTest by getting {
4243
dependencies {
43-
val vertxVersion = "4.0.2"
4444
implementation("io.vertx:vertx-core:$vertxVersion")
4545
implementation("com.google.guava:guava:30.1-jre")
4646
implementation("junit:junit:4.13.2")
@@ -59,7 +59,6 @@ kotlin {
5959
}
6060

6161
dependencies {
62-
val vertxVersion = "4.0.2"
6362
"kapt"("io.vertx:vertx-codegen:$vertxVersion:processor")
6463
}
6564

@@ -69,7 +68,6 @@ tasks {
6968
java.srcDir("$buildDir/generated/source/kapt/main")
7069

7170
dependencies {
72-
val vertxVersion = "4.0.2"
7371
implementation("io.vertx:vertx-core:$vertxVersion")
7472
implementation("io.vertx:vertx-codegen:$vertxVersion")
7573
implementation("io.vertx:vertx-service-proxy:$vertxVersion")

0 commit comments

Comments
 (0)