Class WebDependencyJarBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.vertx.http.deployment.spi.WebDependencyJarBuildItem

public final class WebDependencyJarBuildItem extends io.quarkus.builder.item.MultiBuildItem
Produced by extensions that ship web assets (JS modules, CSS, etc.) following the mvnpm layout convention in their runtime JAR.

UI framework extensions (web-dependency-locator, web-bundler, etc.) consume these to discover web dependencies without classpath scanning or group-ID matching.

Extensions that generate their import mappings at build time can pass them directly via WebDependencyJarBuildItem(ArtifactKey, Path, Map), avoiding the need for a static META-INF/importmap.json in the JAR.

  • Constructor Details

    • WebDependencyJarBuildItem

      public WebDependencyJarBuildItem(io.quarkus.maven.dependency.ArtifactKey artifactKey, Path jarPath)
    • WebDependencyJarBuildItem

      public WebDependencyJarBuildItem(io.quarkus.maven.dependency.ArtifactKey artifactKey, Path jarPath, Map<String,String> importMappings)
  • Method Details

    • getArtifactKey

      public io.quarkus.maven.dependency.ArtifactKey getArtifactKey()
    • getJarPath

      public Path getJarPath()
    • getImportMappings

      public Map<String,String> getImportMappings()
      Returns the import mappings provided at build time, or an empty map if the import map should be read from the JAR's META-INF/importmap.json.