Skip to content

Commit

Permalink
Apply dependency overrides to all dependency types
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
AndreKurait committed Oct 1, 2024
1 parent f28e131 commit a8c231b
Show file tree
Hide file tree
Showing 19 changed files with 14 additions and 31 deletions.
2 changes: 0 additions & 2 deletions CreateSnapshot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

dependencies {
implementation project(":commonDependencyVersionConstraints")

implementation project(':coreUtilities')
implementation project(":RFS")

Expand Down
1 change: 0 additions & 1 deletion DocumentsFromSnapshotMigration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class DockerServiceProps {
}

dependencies {
implementation project(":commonDependencyVersionConstraints")
implementation platform('io.projectreactor:reactor-bom:2023.0.5')
testImplementation platform('io.projectreactor:reactor-bom:2023.0.5')

Expand Down
2 changes: 0 additions & 2 deletions MetadataMigration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

dependencies {
implementation project(":commonDependencyVersionConstraints")

implementation project(":coreUtilities")
implementation project(":RFS")
implementation project(':transformation')
Expand Down
2 changes: 0 additions & 2 deletions RFS/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ ext {
}

dependencies {
implementation project(":commonDependencyVersionConstraints")
implementation project(':awsUtilities')
implementation project(':coreUtilities')
implementation project(':transformation')
Expand Down Expand Up @@ -75,7 +74,6 @@ dependencies {
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations'

testFixturesImplementation project(":commonDependencyVersionConstraints")
testFixturesImplementation project(':transformation')
testFixturesImplementation testFixtures(project(":coreUtilities"))
testFixturesImplementation group: 'com.github.docker-java', name: 'docker-java'
Expand Down
1 change: 0 additions & 1 deletion TrafficCapture/captureKafkaOffloader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {
}

dependencies {
api project(":commonDependencyVersionConstraints")
implementation project(':TrafficCapture:captureOffloader')
implementation project(':coreUtilities')
implementation group: 'com.google.protobuf', name:'protobuf-java'
Expand Down
1 change: 0 additions & 1 deletion TrafficCapture/captureOffloader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ sourceSets {
}
}
dependencies {
api project(":commonDependencyVersionConstraints")
api group: 'io.netty', name: 'netty-buffer'

implementation project(':TrafficCapture:captureProtobufs')
Expand Down
1 change: 0 additions & 1 deletion TrafficCapture/captureProtobufs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ plugins {
}

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

Expand Down
2 changes: 0 additions & 2 deletions TrafficCapture/nettyWireLogging/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ plugins {
}

dependencies {
api project(":commonDependencyVersionConstraints")

implementation project(':TrafficCapture:captureOffloader')
implementation project(':coreUtilities')
api group: 'io.netty', name: 'netty-buffer'
Expand Down
2 changes: 0 additions & 2 deletions TrafficCapture/trafficCaptureProxyServer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ configurations {
}

dependencies {
implementation project(":commonDependencyVersionConstraints")

def openSearch = '2.11.1'
implementation "org.opensearch.plugin:opensearch-security:${openSearch}.0"
implementation "org.opensearch:opensearch-common:${openSearch}"
Expand Down
2 changes: 0 additions & 2 deletions TrafficCapture/trafficCaptureProxyServerTest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ def calculateDockerHash = { projectName ->
}

dependencies {
api project(":commonDependencyVersionConstraints")

implementation project(':TrafficCapture:trafficCaptureProxyServer')
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
Expand Down
2 changes: 0 additions & 2 deletions TrafficCapture/trafficReplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ plugins {
}

dependencies {
implementation project(":commonDependencyVersionConstraints")

implementation project(':TrafficCapture:captureProtobufs')
implementation project(':coreUtilities')
implementation project(':awsUtilities')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ plugins {
}

dependencies {
implementation project(":commonDependencyVersionConstraints")
implementation project(':TrafficCapture:transformationPlugins:jsonMessageTransformers:jsonMessageTransformerInterface')

implementation group: 'com.bazaarvoice.jolt', name: 'jolt-core'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ plugins {
}

dependencies {
api project(":commonDependencyVersionConstraints")
}
2 changes: 0 additions & 2 deletions awsUtilities/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

dependencies {
api project(":commonDependencyVersionConstraints")

implementation group: 'software.amazon.awssdk', name: 'arns'
implementation group: 'software.amazon.awssdk', name: 'auth'
implementation group: 'software.amazon.awssdk', name: 'sdk-core'
Expand Down
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ allprojects {
}
}

subprojects { subproject ->
subproject.afterEvaluate {
if (subproject.plugins.hasPlugin('java') && subproject.name != 'commonDependencyVersionConstraints') {
subproject.dependencies {
implementation project(":commonDependencyVersionConstraints")
annotationProcessor project(":commonDependencyVersionConstraints")
if (subproject.plugins.hasPlugin('java-test-fixtures')) {
testFixturesImplementation project(":commonDependencyVersionConstraints")
}
}
}
}
}

task buildDockerImages() {
dependsOn(':TrafficCapture:dockerSolution:buildDockerImages')
dependsOn(':DocumentsFromSnapshotMigration:buildDockerImages')
Expand Down
2 changes: 0 additions & 2 deletions coreUtilities/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

dependencies {
api project(":commonDependencyVersionConstraints")

implementation group: "com.google.protobuf", name: "protobuf-java"
implementation group: 'org.slf4j', name: 'slf4j-api'

Expand Down
3 changes: 0 additions & 3 deletions dashboardsSanitizer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ repositories {
}

dependencies {

implementation project(":commonDependencyVersionConstraints")

implementation project(':coreUtilities')
implementation project(":RFS")

Expand Down
2 changes: 0 additions & 2 deletions testHelperFixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ plugins {
}

dependencies {
api project(":commonDependencyVersionConstraints")

testFixturesImplementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind'
testFixturesImplementation group: 'com.google.guava', name: 'guava'
testFixturesImplementation group: 'eu.rekawek.toxiproxy', name: 'toxiproxy-java'
Expand Down
2 changes: 0 additions & 2 deletions transformation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

dependencies {
api project(":commonDependencyVersionConstraints")

implementation group: 'org.slf4j', name: 'slf4j-api'

testImplementation group: 'org.apache.logging.log4j', name: 'log4j-api'
Expand Down

0 comments on commit a8c231b

Please sign in to comment.