]> git.frustrated-labs.net Git - gradle-configvalidator-plugin.git/commitdiff
add overloaded constructor to Andes configuration source
authorAlexander Goussas <[email protected]>
Mon, 29 Dec 2025 16:20:28 +0000 (11:20 -0500)
committerAlexander Goussas <[email protected]>
Mon, 29 Dec 2025 16:20:28 +0000 (11:20 -0500)
lib/src/main/java/io/github/aloussase/configvalidator/sources/AndesConfigurationVariableSource.java

index 821e80692592e8f38c0f4e7f3c4614219fa8a388..1715600593ab267d4115c99d3f88671baff407a4 100644 (file)
@@ -26,6 +26,17 @@ public class AndesConfigurationVariableSource implements ConfigurationVariableSo
 
     private final ObjectMapper objectMapper;
 
+    public AndesConfigurationVariableSource(String apiUrl, String bluePrint, String authToken, String deploymentId) {
+        this(
+                new OkHttpClient.Builder().build(),
+                apiUrl,
+                bluePrint,
+                authToken,
+                deploymentId,
+                new ObjectMapper()
+        );
+    }
+
     public AndesConfigurationVariableSource(OkHttpClient httpClient, String apiUrl, String bluePrint, String authToken, String deploymentId, ObjectMapper objectMapper) {
         this.httpClient = httpClient;
         this.apiUrl = apiUrl;