[ 
https://issues.apache.org/jira/browse/BEAM-10961?focusedWorklogId=522240&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-522240
 ]

ASF GitHub Bot logged work on BEAM-10961:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Dec/20 13:07
            Start Date: 09/Dec/20 13:07
    Worklog Time Spent: 10m 
      Work Description: sonam-vend commented on a change in pull request #12938:
URL: https://github.com/apache/beam/pull/12938#discussion_r539291190



##########
File path: runners/flink/1.10/job-server/build.gradle
##########
@@ -29,3 +29,7 @@ project.ext {
 
 // Load the main build script which contains all build logic.
 apply from: "$basePath/flink_job_server.gradle"
+
+dependencies {
+  permitUnusedDeclared project(":runners:flink:1.10")

Review comment:
       project(":runners:flink:1.10") is transitively being declared, though we 
do not need it here. If I dont add 
   
   dependencies {
     permitUnusedDeclared project(":runners:flink:1.10") 
   }
   
   I have been getting,
   What went wrong:
   Execution failed for task 
':runners:flink:1.10:job-server:analyzeClassesDependencies'.
   > Dependency analysis found issues.
     unusedDeclaredArtifacts: 
      - beam.runners.flink:1.10:2.27.0-SNAPSHOT@jar
   
   
   same is true for other versions.




----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 522240)
    Time Spent: 9h 20m  (was: 9h 10m)

> Enable strict dependency analysis on all Java modules 
> ------------------------------------------------------
>
>                 Key: BEAM-10961
>                 URL: https://issues.apache.org/jira/browse/BEAM-10961
>             Project: Beam
>          Issue Type: Improvement
>          Components: java-fn-execution
>            Reporter: Shehzaad Nakhoda
>            Assignee: Shehzaad Nakhoda
>            Priority: P2
>          Time Spent: 9h 20m
>  Remaining Estimate: 0h
>
> This is an IWYU analysis. If the module is using its transitive deps without 
> depending on them, or if it has direct dependencies it doesn't use, the build 
> fails. The work involves adding dependencies or adding exclusion rules 
> (example: 
> https://github.com/wfhartford/gradle-dependency-analyze#configurations). Even 
> if they just add exclusions across the board, it will be a big win because it 
> will prevent new violations.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to