/** * Returns the spring boot configuration (supports `application.properties` and `application.yml`) * or an empty properties object if not found */ public static Properties getSpringBootApplicationProperties(URLClassLoader compileClassLoader) { URL ymlResource = compileClassLoader.findResource("application.yml"); URL propertiesResource = compileClassLoader.findResource("application.properties"); Properties props = YamlUtil.getPropertiesFromYamlResource(ymlResource); props.putAll(getPropertiesResource(propertiesResource)); return props; }