Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump-up to 3.0.0 #63

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String>) env.allVariables`
- Replace to use a method `(Map<String, String>) env.allVariables()` instead.

## [2.1.0] - 2023-11-26

Expand All @@ -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)

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.1.0"
id("co.uzzu.dotenv.gradle") version "3.0.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.1.0"
id("co.uzzu.dotenv.gradle") version "3.0.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.1.0"
id("co.uzzu.dotenv.gradle") version "3.0.0"
}

val keys = listOf(
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.1.0"
val version = "3.0.0"
}

group = Artifact.groupId
Expand Down