Class ModuleVersionResolver

java.lang.Object
io.cloudstub.local.config.resolver.ModuleVersionResolver

public final class ModuleVersionResolver extends Object
Resolves the version of the module jars to auto-download.

Precedence: --module-version=<v> CLI flag, then CLOUDSTUB_MODULE_VERSION environment variable, then the cloudstub.module-version config-file key, then the running cloudstub-core version. Defaulting to the running core version keeps a downloaded module and the core providing its SPI on the same release; the override is for advanced use.

  • Method Details

    • resolve

      public static String resolve(String[] args, LocalConfig config)
      Returns:
      the version to download; never blank