Skip to content

Commit

Permalink
Use single version declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Tanner Lewis <[email protected]>
  • Loading branch information
lewijacn committed Sep 24, 2024
1 parent 700b0f6 commit e99f373
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TrafficCapture/captureProtobufs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ plugins {

dependencies {
api project(":commonDependencyVersionConstraints")
api group: 'com.google.protobuf', name: 'protobuf-java', version: '3.25.5'
api group: 'com.google.protobuf', name: 'protobuf-java'
}

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.25.5"
artifact = "com.google.protobuf:protoc:${rootProject.project("commonDependencyVersionConstraints").protobufVersion}"
}
}
8 changes: 6 additions & 2 deletions commonDependencyVersionConstraints/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ plugins {
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

ext {
protobufVersion='3.25.5'
}

dependencies {

constraints {
Expand All @@ -24,7 +28,7 @@ dependencies {

api group: 'com.google.guava', name: 'guava', version: '32.0.1-jre'

api group: 'com.google.protobuf', name: 'protobuf-java', version: '3.25.5'
api group: 'com.google.protobuf', name: 'protobuf-java', version: protobufVersion

api group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: '5.2.1'
api group: 'software.amazon.msk', name:'aws-msk-iam-auth', version: '2.0.3'
Expand All @@ -38,7 +42,7 @@ dependencies {

api group: 'org.apache.kafka', name:'kafka-clients', version:'3.6.0'

api group: 'com.google.protobuf', name: 'protoc', version: '3.25.5'
api group: 'com.google.protobuf', name: 'protoc', version: protobufVersion

def jmeter = '5.6.3'
api group: 'org.apache.jmeter', name: 'ApacheJMeter_core', version: jmeter
Expand Down

0 comments on commit e99f373

Please sign in to comment.