Skip to content

Commit

Permalink
Reduce scope of dependencies for faster/simplier rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Dec 17, 2021
1 parent 96211ec commit 57c0e22
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 deletions.
16 changes: 8 additions & 8 deletions extensions/barrage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ configurations {
testCompile.extendsFrom irisDbTest
}

description = 'An extension integrating Barrage with Deephavens Table Model'
description = 'An extension integrating Barrage with Deephaven\'s Table Model'

dependencies {
api project(':Base')
api project(':Util')
implementation project(':Base')
implementation project(':Util')
api project(':engine-table')
api project(':proto:proto-backplane-grpc-flight')
api project(':log-factory')
implementation project(':proto:proto-backplane-grpc-flight')
implementation project(':log-factory')
api "io.deephaven.barrage:barrage-format:0.3.0"

Classpaths.inheritFlatbuffer(project, 'api')
Classpaths.inheritFlatbuffer(project, 'implementation')

Classpaths.inheritArrow(project, 'arrow-vector', 'api')
Classpaths.inheritArrow(project, 'arrow-format', 'api')
Classpaths.inheritArrow(project, 'arrow-vector', 'implementation')
Classpaths.inheritArrow(project, 'arrow-format', 'implementation')

Classpaths.inheritImmutables(project)

Expand Down
36 changes: 18 additions & 18 deletions grpc-api/grpc-api.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'java'
id 'java-library'
}

configurations {
// custom configuration, sourceset, test task to keep flight-core off the main/test classpath
flightTestCompile.extendsFrom(testCompile)
flightTestCompile.extendsFrom(testImplementation)
}

sourceSets {
Expand All @@ -20,25 +20,25 @@ sourceSets {
}

dependencies {
compile project(':engine-table'),
project(':extensions-csv'),
project(':extensions-parquet-table'),
project(':Util'),
project(':java-client-barrage-dagger'),
project(':proto:proto-backplane-grpc-flight'),
project(':open-api-lang-tools'),
project(':log-factory'),
project(':application-mode'),
'com.github.f4b6a3:uuid-creator:3.6.0'

Classpaths.inheritFlatbuffer(project, 'compile')
implementation project(':engine-table')
implementation project(':extensions-csv')
implementation project(':extensions-parquet-table')
implementation project(':Util')
api project(':java-client-barrage-dagger')
implementation project(':proto:proto-backplane-grpc-flight')
implementation project(':open-api-lang-tools')
implementation project(':log-factory')
implementation project(':application-mode')
implementation 'com.github.f4b6a3:uuid-creator:3.6.0'

Classpaths.inheritFlatbuffer(project, 'implementation')

Classpaths.inheritDagger(project)
Classpaths.inheritDagger(project, /* test */ true)

compile project(':Plot')
implementation project(':Plot')

compile project(':ClientSupport')
implementation project(':ClientSupport')

if ('true' == project.findProperty('extensions.classgraph.enabled')) {
runtimeOnly project(':extensions-classgraph')
Expand All @@ -47,7 +47,7 @@ dependencies {
runtimeOnly project(':extensions-suanshu')
}

testCompile TestTools.projectDependency(project, 'engine-table'),
testImplementation TestTools.projectDependency(project, 'engine-table'),
TestTools.projectDependency(project, 'Util')

runtimeOnly project(':Numerics'),
Expand All @@ -59,7 +59,7 @@ dependencies {
Classpaths.inheritSlf4j(project, 'slf4j-simple', 'testRuntimeOnly')

// it is essential that this is only added to the classpath for flightTestCompile
Classpaths.inheritArrow(project, 'flight-grpc', 'flightTestCompile')
Classpaths.inheritArrow(project, 'flight-core', 'flightTestCompile')
}

// testOutOfBand: non-parallel, not a engine test, not isolated
Expand Down
2 changes: 2 additions & 0 deletions java-client/session-dagger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ dependencies {
Classpaths.inheritAssertJ(project)

testImplementation TestTools.projectDependency(project, 'grpc-api')
testImplementation project(':java-client-flight')
testImplementation project(':proto:proto-backplane-grpc-flight')
testImplementation project(':log-to-slf4j')
}

Expand Down
2 changes: 1 addition & 1 deletion proto/proto-backplane-grpc-flight/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = 'The Deephaven proto-backplane-grpc-flight'

dependencies {
api project(':proto:proto-backplane-grpc')
Classpaths.inheritArrow(project, 'flight-grpc', 'api')
Classpaths.inheritArrow(project, 'flight-core', 'api')
}

apply plugin: 'io.deephaven.java-publishing-conventions'

0 comments on commit 57c0e22

Please sign in to comment.