Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8747

Collect library dependencies into single dependency

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: build

      Description

      Library dependencies like Spring, Jackson, Spring Security, etc. usually have many dependencies. Which if used within a module, require the listing each of these dependencies.

      With the addition of ClassLoader Isolation a need arose, where these libraries where loaded into a single ClassLoader, instead of being loaded by the ClassLoaders of each of the modules that depended on these libraries.

      This feature is to replace the following:

          implementation('org.springframework:spring-core')
          implementation('org.springframework:spring-beans')
          implementation('org.springframework:spring-context')
          implementation('org.springframework:spring-jcl')
          implementation('org.springframework:spring-web')
          implementation('org.springframework.shell:spring-shell')
      

      with a single entry:

         implementation(project(':frameworks:springframework'))
      

      What this new construct allows for is a pattern closer to "using a framework" without having to explicitly define all the library dependencies. In this approach, we "use" a framework library, rather than knowing all of the internal dependencies.

      With this change, the ClassLoader isolation work, will only load each dependency once.

      Currently identified dependencies that require to be loaded only once are:
      Spring and Jackson

        Attachments

          Activity

            People

            • Assignee:
              yozaner1324 Patrick Johnson
              Reporter:
              ukohlmeyer Udo Kohlmeyer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: