Class IncubatingApplicationModelResolver

java.lang.Object
io.quarkus.bootstrap.resolver.maven.IncubatingApplicationModelResolver

public class IncubatingApplicationModelResolver extends Object
  • Constructor Details

    • IncubatingApplicationModelResolver

      public IncubatingApplicationModelResolver()
  • Method Details

    • isIncubatingEnabled

      public static boolean isIncubatingEnabled(Properties projectProperties)
      Temporary method that will be removed once this implementation becomes the default.

      Returns true if system or POM property quarkus.bootstrap.incubating-model-resolver is set to true.

      Returns:
      true if this implementation is enabled
    • isIncubatingModelResolverProperty

      public static boolean isIncubatingModelResolverProperty(Properties projectProperties, String value)
      Temporary method that will be removed once this implementation becomes the default.

      Calls getIncubatingModelResolverProperty(Properties) and checks whether the returned value equals the passed in value.

      Returns:
      true if value of quarkus.bootstrap.incubating-model-resolver property is equal to the passed in value
    • getIncubatingModelResolverProperty

      public static String getIncubatingModelResolverProperty(Properties projectProperties)
      Temporary method that will be removed once this implementation becomes the default.

      Returns value of system or POM property quarkus.bootstrap.incubating-model-resolver. The system property is checked first and if its value is not null, it's returned. Otherwise, the value of POM property is returned as the result.

      Returns:
      value of system or POM property quarkus.bootstrap.incubating-model-resolver or null if it's not set
    • newInstance

      public static IncubatingApplicationModelResolver newInstance()
    • setArtifactResolver

      public IncubatingApplicationModelResolver setArtifactResolver(MavenArtifactResolver resolver)
    • setApplicationModelBuilder

      public IncubatingApplicationModelResolver setApplicationModelBuilder(ApplicationModelBuilder appBuilder)
    • setCollectReloadableModules

      public IncubatingApplicationModelResolver setCollectReloadableModules(boolean collectReloadableModules)
    • setDependencyLogging

      public IncubatingApplicationModelResolver setDependencyLogging(DependencyLoggingConfig depLogging)
    • setCollectCompileOnly

      public IncubatingApplicationModelResolver setCollectCompileOnly(List<org.eclipse.aether.graph.Dependency> collectCompileOnly)
      In addition to resolving dependencies for the build classpath, also resolve these compile-only dependencies and add them to the application model as DependencyFlags.COMPILE_ONLY.
      Parameters:
      collectCompileOnly - compile-only dependencies to add to the model
      Returns:
      self
    • resolve

      public void resolve(org.eclipse.aether.collection.CollectRequest collectRtDepsRequest) throws AppModelResolverException
      Throws:
      AppModelResolverException