Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2326

Add Automatic-Module-Name for Undertow Modules

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 2.5.0.Final
    • 2.3.9.Final
    • Core, Servlet, Web Sockets
    • None
    • Low

      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 undertow.core;

      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 undertow-core, undertow-servlet, and undertow-websockets-jsr 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

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

                Created:
                Updated: