All Downloads are FREE. Search and download functionalities are using the official Maven repository.

x-config-yaml.4.5.1.source-code.yaml-format.adoc Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR2
Show newest version
=== Yaml Configuration Format

The Yaml Configuration Format extends the Vert.x Configuration Retriever and provides the
support for the Yaml Configuration Format format.

==== Using the Yaml Configuration Format

To use the Yaml Configuration Format, add the following dependency to the
_dependencies_ section of your build descriptor:

* Maven (in your `pom.xml`):

[source,xml,subs="+attributes"]
----

  io.vertx
  vertx-config-yaml
  ${maven.version}


  io.vertx
  vertx-config
  ${maven.version}

----

* Gradle (in your `build.gradle` file):

[source,groovy,subs="+attributes"]
----
compile 'io.vertx:vertx-config:${maven.version}'
compile 'io.vertx:vertx-config-yaml:${maven.version}'
----

==== Configuring the store to use YAML

Once added to your classpath or dependencies, you need to configure the
{@link io.vertx.config.ConfigRetriever} to use this format:

[source, $lang]
----
{@link examples.ConfigYamlExamples#example1(io.vertx.core.Vertx)}
----

You just need to set `format` to `yaml`.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy