From 0ab92722fadfe0a0085284d097354ce4300dcf6b Mon Sep 17 00:00:00 2001 From: uzzu Date: Mon, 27 Nov 2023 02:06:36 +0900 Subject: [PATCH] Bump-up to 3.0.0 --- CHANGELOG.md | 18 ++++++++++++++---- examples/basic/build.gradle.kts | 2 +- examples/change_file/build.gradle.kts | 2 +- examples/change_template_file/build.gradle.kts | 2 +- plugin/build.gradle.kts | 2 +- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15e2862..1fa31e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,17 +9,27 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +### Changed + +### Deprecated + +### Removed + +### Fixed + +## [3.0.0] - 2023-11-27 + ### Changed - The behavior of project to ignore the filename option specified for this plugin in the parent project's gradle properties by default. + - Fix of [#39](https://github.com/uzzu/dotenv-gradle/issues/39) - For example, if `dotenv.filename=.env.staging` is set in the root project, this setting will automatically apply to sub-projects as well. While this follows the correct resolution order of Gradle Properties, it has been a source of confusion for users working with dotenv. - To disable this default behavior, add `dotenv.filename.ignore.parent=false` to the gradle.properties in the root project. - A same update has been applied to the specification of template file names. To disable this default behavior, add `dotenv.template.filename.ignore.parent=false` to the gradle.properties in the root project. ### Deprecated -### Removed - -### Fixed +- `val (Map) env.allVariables` + - Replace to use a method `(Map) env.allVariables()` instead. ## [2.1.0] - 2023-11-26 @@ -30,7 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - 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). + those that are only defined in the .env template (which means their values are possible to 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) diff --git a/examples/basic/build.gradle.kts b/examples/basic/build.gradle.kts index cd0189d..4c6eb04 100644 --- a/examples/basic/build.gradle.kts +++ b/examples/basic/build.gradle.kts @@ -1,6 +1,6 @@ plugins { base - id("co.uzzu.dotenv.gradle") version "2.1.0" + id("co.uzzu.dotenv.gradle") version "3.0.0" } val keys = listOf( diff --git a/examples/change_file/build.gradle.kts b/examples/change_file/build.gradle.kts index 81185c7..a87e65e 100644 --- a/examples/change_file/build.gradle.kts +++ b/examples/change_file/build.gradle.kts @@ -1,6 +1,6 @@ plugins { base - id("co.uzzu.dotenv.gradle") version "2.1.0" + id("co.uzzu.dotenv.gradle") version "3.0.0" } println(env.FOO.value) diff --git a/examples/change_template_file/build.gradle.kts b/examples/change_template_file/build.gradle.kts index 9215784..29109c4 100644 --- a/examples/change_template_file/build.gradle.kts +++ b/examples/change_template_file/build.gradle.kts @@ -1,6 +1,6 @@ plugins { base - id("co.uzzu.dotenv.gradle") version "2.1.0" + id("co.uzzu.dotenv.gradle") version "3.0.0" } val keys = listOf( diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 8820d6e..8ec6c9a 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -42,7 +42,7 @@ tasks { object Artifact { val groupId = "co.uzzu.dotenv" val artifactId = "gradle" - val version = "2.1.0" + val version = "3.0.0" } group = Artifact.groupId