From af5557e152c446e4bec3bad2257d07c1ba402867 Mon Sep 17 00:00:00 2001 From: Jan Steinke Date: Thu, 4 Jul 2024 16:25:26 +0200 Subject: [PATCH] extract protoVersion --- router-protobuf/build.gradle.kts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/router-protobuf/build.gradle.kts b/router-protobuf/build.gradle.kts index da4129f..8c79fc5 100644 --- a/router-protobuf/build.gradle.kts +++ b/router-protobuf/build.gradle.kts @@ -6,13 +6,15 @@ repositories { mavenCentral() } +val protoVersion = "4.27.2" + dependencies { implementation(kotlin("stdlib")) implementation(kotlin("reflect")) implementation("org.slf4j:slf4j-api:2.0.13") - api("com.google.protobuf:protobuf-java:4.27.2") - api("com.google.protobuf:protobuf-java-util:4.27.2") + api("com.google.protobuf:protobuf-java:$protoVersion") + api("com.google.protobuf:protobuf-java-util:$protoVersion") implementation("com.google.guava:guava:33.2.1-jre") api(project(":router")) @@ -28,6 +30,6 @@ protobuf { // Configure the protoc executable protoc { // Download from repositories - artifact = "com.google.protobuf:protoc:4.27.2" + artifact = "com.google.protobuf:protoc:$protoVersion" } } \ No newline at end of file