Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-424

Add Automatic-Module-Name for XNIO Modules

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Minor
    • None
    • 3.8.11.Final
    • api, nio-impl
    • None
    • Low

    Description

      If you're creating a Java module and using Gradle as your build system, you will get a "module not found" error for this line in module-info.java:

      requires xnio.api;

      The root cause is that implied automatic modules are not included on the module path in Gradle. The easiest fix is just to add "Automatic-Module-Name" to MANIFEST.MF. (You could also add a module-info.java file, but that's a more involved fix.)

      (This issue does not affect Maven builds, though; Maven includes implied automatic modules on the module path.)

      AFAIK, this change should be applied to the xnio-api and xnio-nio modules. (Are there other modules that this should be applied to?) We'll just use the current module name as the Automatic-Module-Name.

      For more context, see https://github.com/gradle/gradle/issues/26726

      Attachments

        Activity

          People

            Unassigned Unassigned
            mwacker Mike Wacker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: