Skip to content

Commit

Permalink
[BEAM-10961] Enabled strict Dependency on Portability (#13666)
Browse files Browse the repository at this point in the history
* Enabled strict Dependency on Portability

* set enableStrictDependencies:true

* shadowed java-core
  • Loading branch information
sonam-vend committed Jan 22, 2021
1 parent 8b759d1 commit 262273c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions runners/portability/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import groovy.json.JsonOutput
*/

plugins { id 'org.apache.beam.module' }
applyJavaNature(automaticModuleName: 'org.apache.beam.runners.portability')
applyJavaNature(enableStrictDependencies:true, automaticModuleName: 'org.apache.beam.runners.portability')
applyPythonNature()

description = "Apache Beam :: Runners :: Portability :: Java"
Expand All @@ -32,12 +32,19 @@ configurations {

dependencies {
compile library.java.vendored_guava_26_0_jre
compile library.java.hamcrest_library
compile project(":runners:java-fn-execution")
compile project(":runners:java-job-service")
compile project(path: ":sdks:java:harness", configuration: "shadow")
compile library.java.vendored_grpc_1_26_0
compile library.java.slf4j_api
compile library.java.joda_time
compile "org.hamcrest:hamcrest:2.1"
compile project(path: ":model:fn-execution", configuration: "shadow")
compile project(path: ":model:job-management:", configuration: "shadow")
compile project(path: ":model:pipeline", configuration: "shadow")
compile project(":runners:core-construction-java")
compile project(path: ":sdks:java:core", configuration: "shadow")
compile project(":sdks:java:fn-execution")

testCompile project(path: ":runners:core-construction-java", configuration: "testRuntime")
testCompile library.java.hamcrest_core
Expand Down

0 comments on commit 262273c

Please sign in to comment.