Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8471

Contents of META-INF/services/org.codehaus.groovy.source.Extensions conflict with Maven/Jisaw

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.4.13
    • None
    • None

    Description

      From what I can gather, Jigsaw module resolution analyzes the contents of module-info.class, MANIFEST.MF and META-INF/services/* files.

      As such, it turns out that the contents of src/resources/META-INF/services/org.codehaus.groovy.source.Extensions prevents groovy-*.jar from being loaded as an automatic module, at least within a Maven build.

      rfscholte has pointed out that this is not a Maven specific problem as can be verified in JShell by invoking:

      java.lang.module.ModuleFinder.of(java.nio.file.Paths.get(artifact)).findAll().stream().findFirst().get().descriptor().name()
      

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              ceki@qos.ch Ceki Gülcü
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: