Skip to content

Commit eb9d272

Browse files
committed
Use libs.versions directly for protobuf & grpc plugins
Since we have moved all the version management for Gradle to the TOML, there is no need to extract `ext` `protobufVersion` & `grpcVersion` entries. * Use `libs.versions.protobufVersion.get()` & `libs.versions.grpcVersion.get()` directly in the `protobuf` Gradle plugin This way main `build.gradle` becomes more cleaner and consice
1 parent 20e2228 commit eb9d272

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ ext {
3434
linkScmDevConnection = 'git@github.com:spring-projects/spring-integration.git'
3535

3636
javaProjects = subprojects - project(':spring-integration-bom')
37-
38-
protobufVersion = libs.versions.protobufVersion.get()
39-
grpcVersion = libs.versions.grpcVersion.get()
4037
}
4138

4239
allprojects {
@@ -449,7 +446,7 @@ project('spring-integration-core') {
449446

450447
protobuf {
451448
protoc {
452-
artifact = "com.google.protobuf:protoc:$protobufVersion"
449+
artifact = "com.google.protobuf:protoc:${libs.versions.protobufVersion.get()}"
453450
}
454451
}
455452

@@ -566,11 +563,11 @@ project('spring-integration-grpc') {
566563

567564
protobuf {
568565
protoc {
569-
artifact = "com.google.protobuf:protoc:$protobufVersion"
566+
artifact = "com.google.protobuf:protoc:${libs.versions.protobufVersion.get()}"
570567
}
571568
plugins {
572569
grpc {
573-
artifact = "io.grpc:protoc-gen-grpc-java:$grpcVersion"
570+
artifact = "io.grpc:protoc-gen-grpc-java:${libs.versions.grpcVersion.get()}"
574571
}
575572
}
576573
generateProtoTasks {

0 commit comments

Comments
 (0)