im.nll.data-simaple-properties

Simple properties - Simple configuration library for Java using properties files

License

License

Categories

Categories

Data
GroupId

GroupId

im.nll.data
ArtifactId

ArtifactId

simaple-properties
Last Version

Last Version

0.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

im.nll.data-simaple-properties
Simple properties - Simple configuration library for Java using properties files
Project URL

Project URL

https://github.com/fivesmallq/simple-properties
Source Code Management

Source Code Management

https://github.com/fivesmallq/simple-properties

Download simaple-properties

How to add to project

<!-- https://jarcasting.com/artifacts/im.nll.data/simaple-properties/ -->
<dependency>
    <groupId>im.nll.data</groupId>
    <artifactId>simaple-properties</artifactId>
    <version>0.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/im.nll.data/simaple-properties/
implementation 'im.nll.data:simaple-properties:0.9.0'
// https://jarcasting.com/artifacts/im.nll.data/simaple-properties/
implementation ("im.nll.data:simaple-properties:0.9.0")
'im.nll.data:simaple-properties:jar:0.9.0'
<dependency org="im.nll.data" name="simaple-properties" rev="0.9.0">
  <artifact name="simaple-properties" type="jar" />
</dependency>
@Grapes(
@Grab(group='im.nll.data', module='simaple-properties', version='0.9.0')
)
libraryDependencies += "im.nll.data" % "simaple-properties" % "0.9.0"
[im.nll.data/simaple-properties "0.9.0"]

Dependencies

test (4)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.7
org.slf4j : slf4j-log4j12 jar 1.7.7
log4j : log4j jar 1.2.17
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

simple-properties

Maven Central Build Status License

Overview

  • implemented in plain Java with no dependencies
  • support UTF-8 for properties file
  • users can override the config with Java system properties, java -Dmyapp.foo.bar=10
  • substitute environment variables (logdir=${HOME}/logs)
  • merges multiple config files use @include.redis=redis.properties

Usage

To add a dependency on simple-properties using Maven, use the following:

<dependency>
    <groupId>im.nll.data</groupId>
    <artifactId>simple-properties</artifactId>
    <version>0.9.2</version>
</dependency>

To add a dependency using Gradle:

dependencies {
  compile 'im.nll.data:simple-properties:0.9.2'
}

Examples

  SimpleProperties props = SimpleProperties.readConfiguration("system.properties");
  Assert.assertEquals("https://github.com/fivesmallq/simple-properties", props.getStringProperty("base_url"));
  Assert.assertEquals("UTF-8", props.getStringProperty("MYSQL_CHARSET"));

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/fivesmallq/simple-properties.

Versions

Version
0.9.0