Skip to content

Commit

Permalink
Merge pull request #60 from uzzu/bump-2.1.0
Browse files Browse the repository at this point in the history
Bump up to 2.1.0
  • Loading branch information
uzzu authored Nov 25, 2023
2 parents d42bc8f + f52bbe4 commit 05a7830
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 9 deletions.
21 changes: 18 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Added

- `(Map<String, String?>) env.allVariablesOrNull()` to get all environment variables includes variables specified in `.env` includes null variables.
- The Plugin set key if defined in .env template files, but it could not be retrieved as nullable value entries by using allVariables()
- By using allVariablesOrNull instead of allVariables, it is possible to retrieve all environment variables, including those that are only defined in the .env template (which means their values are null).
### Changed

### Deprecated

### Removed

### Fixed

## [2.1.0] - 2023-11-26

### Added

- `(Map<String, String?>) env.allVariablesOrNull()` to get all environment variables includes variables specified
in `.env` includes null variables.
- The Plugin set key if defined in .env template files, but it could not be retrieved as nullable value entries by
using allVariables()
- By using allVariablesOrNull instead of allVariables, it is possible to retrieve all environment variables, including
those that are only defined in the .env template (which means their values are null).
- Change `.env.template` filename feature use gradle property `dotenv.template.filename`
- Almost cases are work fine, but has similler problem with [#39](https://github.com/uzzu/dotenv-gradle/issues/39)

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 Hirokazu Uzu
Copyright 2023 Hirokazu Uzu

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
base
id("co.uzzu.dotenv.gradle") version "2.0.0"
id("co.uzzu.dotenv.gradle") version "2.1.0"
}

val keys = listOf(
Expand Down
2 changes: 1 addition & 1 deletion examples/change_file/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
base
id("co.uzzu.dotenv.gradle") version "2.0.0"
id("co.uzzu.dotenv.gradle") version "2.1.0"
}

println(env.FOO.value)
2 changes: 1 addition & 1 deletion examples/change_template_file/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
base
id("co.uzzu.dotenv.gradle") version "2.0.0"
id("co.uzzu.dotenv.gradle") version "2.1.0"
}

val keys = listOf(
Expand Down
2 changes: 1 addition & 1 deletion examples/hierarchical_definitions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
base
id("co.uzzu.dotenv.gradle") version "2.0.0"
id("co.uzzu.dotenv.gradle") version "2.1.0"
}

println("[$name] FOO: ${env.FOO.value}")
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tasks {
object Artifact {
val groupId = "co.uzzu.dotenv"
val artifactId = "gradle"
val version = "2.0.0"
val version = "2.1.0"
}

group = Artifact.groupId
Expand Down

0 comments on commit 05a7830

Please sign in to comment.