Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-697

StackOverflowError during gradle artifactresolving

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.9
    • Fix Version/s: 2016.10.0
    • Component/s: None
    • Labels:
      None

      Description

      When building with gradle an a StackOverflowError occurs when there is a 3rd-party dependency with circular dependencies to other 3rd-party-libs. (Recursion in method "fullTree")

      In gradle I have to possibility to force the build to take another version of the 3rd-party lib, which may have fixed the circular error. (https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html). But this option to quick-fix the error from outside the swarm-buildplugin doesn't work, because the GradleArtifactResolvingHelper from swarm is using a detached configuration, where I can't define this forced-dependencies.

      The GradleArtifactResolvingHelper should use gradle-features to resolve the artifacts from a specific configuration instead of implement this with the recursive method 'fullTree'. gradle can handle this circular dependencies and is much faster! The ResolvingHelper should also apply the forced-versions from the resolutionstrategy of the configuration 'compile' to the detached configuration.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mhofi Marco Hofstetter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: