Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Feb 24, 2019
1 parent 3b58d7e commit 8ce2b13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ Use `dotenv.get("...")` instead of Java's `System.getenv(...)`.
<dependency>
<groupId>io.github.cdimascio</groupId>
<artifactId>java-dotenv</artifactId>
<version>3.1.7</version>
<version>3.3.1</version>
</dependency>
```

### Gradle

```groovy
compile 'io.github.cdimascio:java-dotenv:3.1.7'
compile 'io.github.cdimascio:java-dotenv:3.3.1'
```

## Usage
Expand Down Expand Up @@ -124,15 +124,15 @@ Note, environment variables specified in the host environment take precedence ov
With **Java**

```java
dotenv.get("MY_ENV_VAR1");
dotenv.get("HOME");
dotenv.get("MY_ENV_VAR1", "default value");
```

or with **Kotlin**

```kotlin
dotenv["MY_ENV_VAR1"]
dotenv["HOME"]
dotenv["MY_ENV_VAR1"] ?: "default value"
```

## Configuration options
Expand Down

0 comments on commit 8ce2b13

Please sign in to comment.