melloware commented on PR #783:
URL: https://github.com/apache/myfaces/pull/783#issuecomment-2438015202

   Added these which combines them.  I will do the PF ones in the PF extension
   
   ```java
   /**
        * Produces `UberJarMergedResourceBuildItem`s for each specified service 
file to be included in the Uber JAR.
        * <p>
        * This build step is only executed in "normal" mode and registers each 
of the listed services in
        * the `META-INF/services` directory.
        *
        * @param producer The build item producer for creating 
`UberJarMergedResourceBuildItem` instances.
        */
       @BuildStep(onlyIf = IsNormal.class)
       void uberJarServiceLoaders(BuildProducer<UberJarMergedResourceBuildItem> 
producer)
       {
           List<String> serviceFiles = List.of(
                   "jakarta.el.ExpressionFactory",
                   "jakarta.enterprise.inject.spi.Extension",
                   "jakarta.json.spi.JsonProvider",
                   "jakarta.servlet.ServletContainerInitializer",
                   "jakarta.websocket.server.ServerEndpointConfig$Configurator",
                   "org.apache.myfaces.spi.AnnotationProvider",
                   "org.apache.myfaces.spi.InjectionProvider"
           );
   
           for (String serviceFile : serviceFiles)
           {
               producer.produce(new 
UberJarMergedResourceBuildItem("META-INF/services/" + serviceFile));
           }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to