You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/17 19:43:00 UTC

[jira] [Work logged] (BEAM-11827) Gradle task :checkJavaLinkage is not working

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

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

                Author: ASF GitHub Bot
            Created on: 17/Feb/21 19:42
            Start Date: 17/Feb/21 19:42
    Worklog Time Spent: 10m 
      Work Description: suztomo commented on pull request #14006:
URL: https://github.com/apache/beam/pull/14006#issuecomment-780804391


   retest this please


----------------------------------------------------------------
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:
users@infra.apache.org


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

            Worklog Id:     (was: 553841)
    Remaining Estimate: 0h
            Time Spent: 10m

> Gradle task :checkJavaLinkage is not working
> --------------------------------------------
>
>                 Key: BEAM-11827
>                 URL: https://issues.apache.org/jira/browse/BEAM-11827
>             Project: Beam
>          Issue Type: Bug
>          Components: build-system
>            Reporter: Tomo Suzuki
>            Assignee: Tomo Suzuki
>            Priority: P2
>         Attachments: Screen Shot 2021-02-17 at 13.55.35.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> [https://github.com/apache/beam/pull/13994] revealed that the :checkJavaLinkage task in the root Gradle file does not generate the expected file.
>   
> {noformat}
> suztomo@suztomo:~/beam$ ./gradlew -Ppublishing -PskipCheckerFramework -PjavaLinkageArtifactIds=beam-sdks-java-io-google-cloud-platform -PjavaLinkageWriteBaseline=build/linkagecheck/baseline-beam-sdks-java-io-google-cloud-platform.xml :checkJavaLinkage
> Configuration on demand is an incubating feature.
> > Task :checkJavaLinkage
> NOTE: This task published artifacts into your local Maven repository. You may want to remove them manually.
> Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
> Use '--warning-mode all' to show the individual deprecation warnings.
> See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
> BUILD SUCCESSFUL in 51s
> 1115 actionable tasks: 201 executed, 914 up-to-date
> suztomo@suztomo:~/beam$ 
> suztomo@suztomo:~/beam$ ls build/linkagecheck/baseline-beam-sdks-java-io-google-cloud-platform.xml
> ls: cannot access 'build/linkagecheck/baseline-beam-sdks-java-io-google-cloud-platform.xml': No such file or directory
> {noformat}
> It's as if the "com.google.cloud.tools.opensource.classpath.LinkageCheckerMain" is not called at all while it does resolve the Gradle task dependencies (such as publishMavenJavaPublicationToMavenLocal).
> h1. How to attach Java debugger to checkJavaLinkage task
> In MacBook, I was able to produce the problem. The checkJavaLinkage task does not generate the expected file.
> {noformat}
> ./gradlew  --stacktrace -Ppublishing -PskipCheckerFramework \
>   -PjavaLinkageArtifactIds=beam-sdks-java-io-google-cloud-platform \
>   -PjavaLinkageWriteBaseline=build/linkagecheck/baseline-beam-sdks-java-io-google-cloud-platform.xml \
>   :checkJavaLinkage --debug-jvm
> {noformat}
> I found that the build.gradle.kts passes garbage to LinkageCheckerMain class.
> !Screen Shot 2021-02-17 at 13.55.35.png|width=688,height=458!



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