Skip to content

Commit

Permalink
[BEAM-10961] Enabled strict dependency on Direct Java runner (apache#…
Browse files Browse the repository at this point in the history
…13656)

* Enabled strict dependency on Direct Java runner

* set enableStrictDependencies:true

* shadowed jackson_databind

* removed comment
  • Loading branch information
sonam-vend authored Jan 22, 2021
1 parent da2f431 commit 52dcc36
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions runners/direct-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ def dependOnProjects = [":runners:core-construction-java",
":runners:core-java",
":runners:local-java",
":runners:java-fn-execution",
":sdks:java:fn-execution"]
":sdks:java:fn-execution"
]

applyJavaNature(
enableStrictDependencies:true,
automaticModuleName: 'org.apache.beam.runners.direct',
classesTriggerCheckerBugs: [
'ImpulseEvaluatorFactory': 'https://github.com/typetools/checker-framework/issues/3791',
Expand Down Expand Up @@ -72,17 +74,12 @@ dependencies {
shadow library.java.vendored_grpc_1_26_0
shadow library.java.joda_time
shadow library.java.slf4j_api
shadow library.java.args4j
shadow library.java.jackson_databind
provided library.java.hamcrest_core
provided library.java.junit
shadowTest project(path: ":sdks:java:core", configuration: "shadowTest")
shadowTest project(path: ":runners:core-java", configuration: "testRuntime")
shadowTest library.java.slf4j_jdk14
shadowTest library.java.mockito_core
shadowTest library.java.stax2_api
shadowTest library.java.woodstox_core_asl
shadowTest library.java.google_cloud_dataflow_java_proto_library_all
shadowTest library.java.jackson_dataformat_yaml
needsRunner project(path: ":runners:core-construction-java", configuration: "testRuntime")
needsRunner project(path: ":runners:core-java", configuration: "testRuntime")
needsRunner project(path: ":sdks:java:core", configuration: "shadowTest")
Expand All @@ -93,6 +90,9 @@ dependencies {
validatesRunner project(path: ":sdks:java:core", configuration: "shadowTest")
validatesRunner project(path: project.path, configuration: "shadow")
validatesRunner project(path: project.path, configuration: "shadowTest")
permitUnusedDeclared library.java.vendored_grpc_1_26_0
permitUnusedDeclared project(":runners:java-fn-execution")
permitUnusedDeclared project(":sdks:java:fn-execution")
}

// windows handles quotes differently from linux,
Expand Down

0 comments on commit 52dcc36

Please sign in to comment.