diff --git a/gradle.properties b/gradle.properties index 2951c4a..840d06c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ # limitations under the License. # -version=2.1.0 +version=2.1.1 groupId=com.nike artifactId=cerberus-archaius-client diff --git a/src/main/java/com/nike/cerberus/archaius/client/ArchaiusCerberusClientFactory.java b/src/main/java/com/nike/cerberus/archaius/client/ArchaiusCerberusClientFactory.java index a0f337b..8eee1c0 100644 --- a/src/main/java/com/nike/cerberus/archaius/client/ArchaiusCerberusClientFactory.java +++ b/src/main/java/com/nike/cerberus/archaius/client/ArchaiusCerberusClientFactory.java @@ -32,6 +32,8 @@ public class ArchaiusCerberusClientFactory { * @return Vault client */ public static VaultClient getClient() { - return VaultClientFactory.getClient(new ArchaiusCerberusUrlResolver(), new DefaultCerberusCredentialsProviderChain()); + final ArchaiusCerberusUrlResolver archaiusUrlResolver = new ArchaiusCerberusUrlResolver(); + + return VaultClientFactory.getClient(archaiusUrlResolver, new DefaultCerberusCredentialsProviderChain(archaiusUrlResolver)); } }