Skip to content

Commit

Permalink
extract protoVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Steinke committed Jul 4, 2024
1 parent 7d03618 commit af5557e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions router-protobuf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand All @@ -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"
}
}

0 comments on commit af5557e

Please sign in to comment.