Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-6047

[DOC] Gradle build tool in Containerless analysis does not detect dependencies in Gradle projects

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • Critical
    • None

      See - https://redhat-internal.slack.com/archives/C04SW8G32P3/p1756288096618959

      Description of problem:

      The analyze-bin subcommand does not show dependencies for Gradle projects 

      Version-Release number of selected component (if applicable): 7.2.0-8 

      How reproducible: Always 

      Steps to Reproduce:
      1. Run the following command with the following app (https://github.com/melix/jmh-gradle-example)

      ./MTA-7.2.0-6/mta-7.2.0-cli-linux-amd64/mta-cli analyze-bin -i ~/apps/jmh-gradle-example/ -o ~/Desktop/jmh-containerless --overwrite

      2. Check the analysis report

      Actual results:

      The analysis log shows the following message and no dependencies are displayed in the static report

      INFO[0115] unable to get dependency output in static report. generating static report from source analysis only 
      2024/10/16 15:56:11 dependency output path not provided, only parsing analysis output

      Expected results:

       Analysis report should be equal for analyze and analyze-bin subcommands

      Additional info:

      Attached you'll find a report generated using the containerized mode for comparison purposes

       

      What docs should include:

      ```

      1. Run Containerless Kantra

       

      Have OpenJDK 17+ and Maven installed

       

       

      Have $JAVA_HOME set.

      Requirements:

      • Have OpenJDK 17+ and Maven installed.
      • Have $JAVA_HOME set.
      • *For Gradle analysis*:

        - Have OpenJDK 8 installed.

        - Have $JAVA8_HOME set and pointing to the OpenJDK 8 home.

        - The project should have a Gradle wrapper.

      ```

       

       

       

       

       

       

       

          There are no Sub-Tasks for this issue.

              rhn-support-anarnold A Arnold
              rhn-support-anarnold A Arnold
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: