»cfg4j« is a modern configuration library for distributed apps written in Java.

Release 4.1.0

»cfg4j« 4.1.0 released!

We're proud to announce the 4.1.0 release of »cfg4j«. Learn more about new features in this article.

Changes

New features

  • new source: in-memory, backed by Properties object (see InMemoryConfigurationSource)
  • ConfigurationProvider can now emit performance and usage metrics (see ConfigurationProviderBuilder#withMetrics)

Other

  • upgrade dependencies
  • more integration tests
  • improve source connection management (delay first connection to the moment when it’s needed)

4.1.0 artifacts

Installation

Gradle

dependencies {
  compile group: "org.cfg4j", name:"cfg4j-core", version: "4.1.0"

  // Optional plug-ins

  // Consul integration
  compile group: "org.cfg4j", name:"cfg4j-consul", version: "4.1.0"

  // Git integration
  compile group: "org.cfg4j", name:"cfg4j-git", version: "4.1.0"
}

Maven

<dependencies>
  <dependency>
    <groupId>org.cfg4j</groupId>
    <artifactId>cfg4j-core</artifactId>
    <version>4.1.0</version>
  </dependency>
  
  <!-- Optional plug-ins -->
  
  <!-- Consul integration -->
  <dependency> 
    <groupId>org.cfg4j</groupId>
    <artifactId>cfg4j-consul</artifactId>
    <version>4.1.0</version>
  </dependency>
  
  <!-- Git integration -->
  <dependency>
    <groupId>org.cfg4j</groupId>
    <artifactId>cfg4j-git</artifactId>
    <version>4.1.0</version>
  </dependency>
</dependencies>