diff --git a/gdk-core/pom.xml b/gdk-core/pom.xml index fb6172a..88ee445 100644 --- a/gdk-core/pom.xml +++ b/gdk-core/pom.xml @@ -18,7 +18,7 @@ com.github.libgraviton gdk - 0.3.2 + 0.3.3 gdk-core gdk-core diff --git a/gdk-core/src/main/java/com/github/libgraviton/gdk/util/PropertiesLoader.java b/gdk-core/src/main/java/com/github/libgraviton/gdk/util/PropertiesLoader.java index 4d04cce..fa0db48 100644 --- a/gdk-core/src/main/java/com/github/libgraviton/gdk/util/PropertiesLoader.java +++ b/gdk-core/src/main/java/com/github/libgraviton/gdk/util/PropertiesLoader.java @@ -13,6 +13,21 @@ public class PropertiesLoader { private static final String OVERWRITE_PROPERTIES_PATH = "app.properties"; + /** + * Loads the Properties in the following order (if a property entry ia already loaded, it will be overridden with the new value). + * 1.) Default Properties + * Minimal needed properties for the gdk + * + * 2.) Overwrite Properties + * Usually projects that make use of the gdk library will define these properties. + * + * 3.) System Properties + * Projects that use the gdk library could be deployed to several environments that require different property values. + * The easiest way at this point is to just redefine those properties as system properties. + * + * @return loaded Properties + * @throws IOException whenever the properties from a given path could not be loaded + */ public static Properties load() throws IOException { Properties properties = new Properties(); @@ -26,6 +41,8 @@ public static Properties load() throws IOException { } } + properties.putAll(System.getProperties()); + return properties; } diff --git a/gdk-maven-plugin/pom.xml b/gdk-maven-plugin/pom.xml index 9a0aa03..3a02a36 100644 --- a/gdk-maven-plugin/pom.xml +++ b/gdk-maven-plugin/pom.xml @@ -6,7 +6,7 @@ com.github.libgraviton gdk - 0.3.2 + 0.3.3 gdk-maven-plugin maven-plugin @@ -34,7 +34,7 @@ com.github.libgraviton gdk-core - 0.3.2 + 0.3.3 org.jsonschema2pojo diff --git a/pom.xml b/pom.xml index 9a0da64..33f5057 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.github.libgraviton gdk - 0.3.2 + 0.3.3 pom gdk Graviton Development Kit