[ 
https://issues.apache.org/jira/browse/BEAM-8654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16974641#comment-16974641
 ] 

Tomo Suzuki commented on BEAM-8654:
-----------------------------------

Excluding configuration with


{code:java}
      project.gradle.taskGraph.whenReady { taskGraph ->
        if (!taskGraph.hasTask("dependencyUpdates")) {

{code}

gave

{noformat}
Failed to notify task execution graph listener.
> Cannot change strategy of configuration 
> ':sdks:java:extensions:sql:fmppTemplates' after it has been resolved.
> Cannot change strategy of configuration 
> ':sdks:java:extensions:sql:jdbc:shadowTestRuntimeClasspath' after it has been 
> resolved.
{noformat}



> [Java] beam_Dependency_Check's not getting correct report from Gradle 
> dependencyUpdates
> ---------------------------------------------------------------------------------------
>
>                 Key: BEAM-8654
>                 URL: https://issues.apache.org/jira/browse/BEAM-8654
>             Project: Beam
>          Issue Type: Improvement
>          Components: build-system
>            Reporter: Tomo Suzuki
>            Assignee: Tomo Suzuki
>            Priority: Major
>
> Cont. of https://issues.apache.org/jira/browse/BEAM-8621
> https://builds.apache.org/view/A-D/view/Beam/view/All/job/beam_Dependency_Check/234/consoleFull
>  says
> {noformat}
> 18:20:07 > Task :dependencyUpdates
> ...
> 18:23:12 The following dependencies are using the latest release version:
> ...
> 18:23:12  - com.google.cloud.bigdataoss:util:1.9.16
> 18:23:12  - com.google.cloud.bigtable:bigtable-client-core:1.8.0
> {noformat}
> But they are not the latest release.
> * 
> https://search.maven.org/artifact/com.google.cloud.bigdataoss/util/2.0.0/jar 
> * 
> https://search.maven.org/artifact/com.google.cloud.bigtable/bigtable-client-core/1.12.1/jar
> Why does Gradle think they're the latest release?
> It seems that " -Drevision=release" flag plays some role here. Without the 
> flag, Gradle reports these artifacts are not the latest.
> https://gist.github.com/suztomo/1460f2be48025c8ea764e86a2c6e39a8
> Even with the flag, it should report the following
> {noformat}
> The following dependencies have later release versions:
>  - com.google.cloud.bigtable:bigtable-client-core [1.8.0 -> 1.12.1]
>      https://cloud.google.com/bigtable/
> {noformat}
> https://gist.github.com/suztomo/13473e6b9765c0e96c22aeffab18ef66



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

Reply via email to