sonam-vend commented on a change in pull request #13656:
URL: https://github.com/apache/beam/pull/13656#discussion_r562423250
##########
File path: runners/direct-java/build.gradle
##########
@@ -93,6 +89,10 @@ dependencies {
validatesRunner project(path: ":sdks:java:core", configuration: "shadowTest")
validatesRunner project(path: project.path, configuration: "shadow")
validatesRunner project(path: project.path, configuration: "shadowTest")
+ //runtime dependencies of the tests
+ permitUnusedDeclared library.java.vendored_grpc_1_26_0
+ permitUnusedDeclared project(":runners:java-fn-execution")
+ permitUnusedDeclared project(":sdks:java:fn-execution")
Review comment:
Changing these dependencies to test-only along with shadowTest
configuration still causes the problem:
```
* What went wrong:
Execution failed for task ':runners:direct-java:analyzeClassesDependencies'.
> Dependency analysis found issues.
unusedDeclaredArtifacts:
- beam.runners:java-fn-execution:2.28.0-SNAPSHOT@jar
- beam.sdks.java:fn-execution:2.28.0-SNAPSHOT@jar
- org.apache.beam:beam-vendor-grpc-1_26_0:0.3@jar
```
These dependencies have to be UnusedDeclared.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]