vert-x3 / vertx-config

Vert.x Configuration Service
Apache License 2.0
54 stars 64 forks source link

Can't use multiple stores #65

Closed pgh70 closed 5 years ago

pgh70 commented 5 years ago

Unable to use multiple stores in java:

Using "vault" and "redis" gives: "(known implementations are: [redis])" if redis is first in dependencies and "(known implementations are: [vault])" if vault is first. Can't use them both.

Even when using only one additional store an error is thrown when using the "json" config store. It seems like an additional store is overwriting the available stores.

cescoffier commented 5 years ago

Check that the META-INF/services files contain all the stores you want to use.

pgh70 commented 5 years ago

Me bad... I did forget:

mergeServiceFiles {
    include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}

in my build.gradle shadowJar section... A pointer this requirement in the documentation would be nice...