Fixes #11778 - jetty-http-spi does not properly provide SPI for modules.

Fixed all module-info.java files that did not have a "provides" declaration but had META-INF/services files.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2024-05-24 15:46:09 +02:00
parent b16460252f
commit 65a016d1aa
14 changed files with 46 additions and 13 deletions

View File

@ -11,6 +11,9 @@
// ========================================================================
//
import com.sun.net.httpserver.spi.HttpServerProvider;
import org.eclipse.jetty.http.spi.JettyHttpServerProvider;
module org.eclipse.jetty.http.spi
{
requires transitive jdk.httpserver;
@ -19,4 +22,6 @@ module org.eclipse.jetty.http.spi
requires transitive org.eclipse.jetty.util;
exports org.eclipse.jetty.http.spi;
provides HttpServerProvider with JettyHttpServerProvider;
}

View File

@ -30,6 +30,7 @@ module org.eclipse.jetty.websocket.core.common
provides org.eclipse.jetty.websocket.core.Extension with
org.eclipse.jetty.websocket.core.internal.FragmentExtension,
org.eclipse.jetty.websocket.core.internal.FrameCaptureExtension,
org.eclipse.jetty.websocket.core.internal.IdentityExtension,
org.eclipse.jetty.websocket.core.internal.PerMessageDeflateExtension,
org.eclipse.jetty.websocket.core.internal.ValidationExtension;

View File

@ -1,5 +1,5 @@
org.eclipse.jetty.websocket.core.internal.IdentityExtension
org.eclipse.jetty.websocket.core.internal.FragmentExtension
org.eclipse.jetty.websocket.core.internal.FrameCaptureExtension
org.eclipse.jetty.websocket.core.internal.IdentityExtension
org.eclipse.jetty.websocket.core.internal.PerMessageDeflateExtension
org.eclipse.jetty.websocket.core.internal.ValidationExtension
org.eclipse.jetty.websocket.core.internal.FrameCaptureExtension

View File

@ -11,6 +11,11 @@
// ========================================================================
//
import jakarta.servlet.ServletContainerInitializer;
import org.eclipse.jetty.ee10.cdi.CdiConfiguration;
import org.eclipse.jetty.ee10.cdi.CdiServletContainerInitializer;
import org.eclipse.jetty.ee10.webapp.Configuration;
module org.eclipse.jetty.ee10.cdi
{
requires org.eclipse.jetty.ee10.annotations;
@ -19,4 +24,7 @@ module org.eclipse.jetty.ee10.cdi
requires transitive org.eclipse.jetty.ee10.webapp;
exports org.eclipse.jetty.ee10.cdi;
provides ServletContainerInitializer with CdiServletContainerInitializer;
provides Configuration with CdiConfiguration;
}

View File

@ -1,2 +1,2 @@
org.eclipse.jetty.ee10.plus.webapp.PlusConfiguration
org.eclipse.jetty.ee10.plus.webapp.EnvConfiguration
org.eclipse.jetty.ee10.plus.webapp.PlusConfiguration

View File

@ -11,6 +11,10 @@
// ========================================================================
//
import org.eclipse.jetty.ee10.quickstart.QuickStartConfiguration;
import org.eclipse.jetty.ee10.quickstart.QuickStartGeneratorConfiguration;
import org.eclipse.jetty.ee10.webapp.Configuration;
module org.eclipse.jetty.ee10.quickstart
{
requires jakarta.servlet;
@ -19,4 +23,6 @@ module org.eclipse.jetty.ee10.quickstart
requires transitive org.eclipse.jetty.ee10.annotations;
exports org.eclipse.jetty.ee10.quickstart;
provides Configuration with QuickStartConfiguration, QuickStartGeneratorConfiguration;
}

View File

@ -1 +1 @@
org.eclipse.jetty.test.jmx.MyContainerInitializer
org.eclipse.jetty.ee10.test.jmx.MyContainerInitializer

View File

@ -1,7 +1,7 @@
org.eclipse.jetty.ee10.webapp.FragmentConfiguration
org.eclipse.jetty.ee10.webapp.JettyWebXmlConfiguration
org.eclipse.jetty.ee10.webapp.JaasConfiguration
org.eclipse.jetty.ee10.webapp.JaspiConfiguration
org.eclipse.jetty.ee10.webapp.JettyWebXmlConfiguration
org.eclipse.jetty.ee10.webapp.JmxConfiguration
org.eclipse.jetty.ee10.webapp.JndiConfiguration
org.eclipse.jetty.ee10.webapp.JspConfiguration

View File

@ -11,6 +11,11 @@
// ========================================================================
//
import jakarta.servlet.ServletContainerInitializer;
import org.eclipse.jetty.ee9.cdi.CdiConfiguration;
import org.eclipse.jetty.ee9.cdi.CdiServletContainerInitializer;
import org.eclipse.jetty.ee9.webapp.Configuration;
module org.eclipse.jetty.ee9.cdi
{
requires org.eclipse.jetty.ee9.annotations;
@ -18,4 +23,7 @@ module org.eclipse.jetty.ee9.cdi
requires transitive org.eclipse.jetty.ee9.webapp;
exports org.eclipse.jetty.ee9.cdi;
provides ServletContainerInitializer with CdiServletContainerInitializer;
provides Configuration with CdiConfiguration;
}

View File

@ -1,2 +1,2 @@
org.eclipse.jetty.ee9.plus.webapp.PlusConfiguration
org.eclipse.jetty.ee9.plus.webapp.EnvConfiguration
org.eclipse.jetty.ee9.plus.webapp.PlusConfiguration

View File

@ -11,6 +11,10 @@
// ========================================================================
//
import org.eclipse.jetty.ee9.quickstart.QuickStartConfiguration;
import org.eclipse.jetty.ee9.quickstart.QuickStartGeneratorConfiguration;
import org.eclipse.jetty.ee9.webapp.Configuration;
module org.eclipse.jetty.ee9.quickstart
{
requires jetty.servlet.api;
@ -19,4 +23,6 @@ module org.eclipse.jetty.ee9.quickstart
requires transitive org.eclipse.jetty.ee9.annotations;
exports org.eclipse.jetty.ee9.quickstart;
provides Configuration with QuickStartConfiguration, QuickStartGeneratorConfiguration;
}

View File

@ -1 +1 @@
org.eclipse.jetty.test.jmx.MyContainerInitializer
org.eclipse.jetty.ee9.test.jmx.MyContainerInitializer

View File

@ -1,7 +1,7 @@
org.eclipse.jetty.ee9.webapp.FragmentConfiguration
org.eclipse.jetty.ee9.webapp.JettyWebXmlConfiguration
org.eclipse.jetty.ee9.webapp.JaasConfiguration
org.eclipse.jetty.ee9.webapp.JaspiConfiguration
org.eclipse.jetty.ee9.webapp.JettyWebXmlConfiguration
org.eclipse.jetty.ee9.webapp.JmxConfiguration
org.eclipse.jetty.ee9.webapp.JndiConfiguration
org.eclipse.jetty.ee9.webapp.JspConfiguration