Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
watarhu authored Mar 16, 2022
1 parent 219c6d6 commit c4172ba
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ Java version: JDK8+
(Please read our [Javadoc](https://config-manager.bytemechanics.org/javadoc/index.html) for further information)

1. First of all include the Jar file in your compile and execution classpath.
* **Maven**
* Maven
```Maven
<dependency>
<groupId>org.bytemechanics</groupId>
<artifactId>config-manager</artifactId>
<version>X.X.X</version>
</dependency>
<dependency>
<groupId>org.bytemechanics</groupId>
<artifactId>config-manager</artifactId>
<version>X.X.X</version>
</dependency>
```
* **Graddle**
```Gradle
dependencies {
compile 'org.bytemechanics:config-manager:X.X.X'
}
* Graddle
```json
dependencies {
compile 'org.bytemechanics:config-manager:X.X.X'
}
```
1. Create the ConfigManager instance (keep in account that first configurations will be overrided if exist in the following files)
```Java
Expand All @@ -49,13 +49,13 @@ Java version: JDK8+
1. Load configuration, either
* Directly to System.properties (classic behaviour)
```Java
instance.load();
instance.load();
```
* Manually (custom behaviour)
```Java
instance.stream() //Stream<Config>
.map(toMyObject::convert)
(...)
instance.stream() //Stream<Config>
.map(toMyObject::convert)
(...)
```


0 comments on commit c4172ba

Please sign in to comment.