All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Use Gradle 8.5
- Use Kotlin 1.9.21
val (Map<String, String>) env.allVariables
- Replace to use a method
(Map<String, String>) env.allVariables()
instead.
- Replace to use a method
- 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
- 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 feature of changing
.env.template
filename. To disable this default behavior, adddotenv.template.filename.ignore.parent=false
to the gradle.properties in the root project.
val (Map<String, String>) env.allVariables
- Replace to use a method
(Map<String, String>) env.allVariables()
instead.
- Replace to use a method
(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 possible to null).
- Change
.env.template
filename feature use gradle propertydotenv.template.filename
- Almost cases are work fine, but has similler problem with #39
val (Map<String, String>) env.allVariables
- Replace to use a method
(Map<String, String>) env.allVariables()
instead.
- Replace to use a method
- Hierarchical dotenv definitions support #19
- Change
.env
filename feature use gradle propertydotenv.filename
, instead of environment variableENV_FILE
. #20 - Update Gradle to 7.1.1 #16
- Update Kotlin to 1.4.31 used into Gradle 7.1.1
- Changing
.env
file #14- If environment variable
ENV_FILE
is set, The plugin read a file specifiedENV_FILE
instead of.env
file.
- If environment variable
- Update Gradle to 6.9
- Update Kotlin to 1.4.20
(Map<String, String>) env.allVariables
to get all environment variables includes variables specified in.env
files. #5
- Fix incorrect resolving order.
- Fix gradle plugin metadata.
- Initial release.