Skip to content

Latest commit

 

History

History
120 lines (75 loc) · 3.64 KB

CHANGELOG.md

File metadata and controls

120 lines (75 loc) · 3.64 KB

Change Log

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.

[Unreleased]

Added

Changed

Deprecated

Removed

Fixed

[4.0.0] - 2023-12-22

Changed

  • Use Gradle 8.5
  • Use Kotlin 1.9.21

Removed

  • val (Map<String, String>) env.allVariables
    • Replace to use a method (Map<String, String>) env.allVariables() instead.

[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
    • 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, add dotenv.template.filename.ignore.parent=false to the gradle.properties in the root project.

Deprecated

  • val (Map<String, String>) env.allVariables
    • Replace to use a method (Map<String, String>) env.allVariables() instead.

[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 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

Deprecated

  • val (Map<String, String>) env.allVariables
    • Replace to use a method (Map<String, String>) env.allVariables() instead.

[2.0.0] - 2022-03-02

Added

Changed

  • Change .env filename feature use gradle property dotenv.filename , instead of environment variable ENV_FILE . #20
  • Update Gradle to 7.1.1 #16
  • Update Kotlin to 1.4.31 used into Gradle 7.1.1

[1.2.0] - 2021-09-24

Added

  • Changing .env file #14
    • If environment variable ENV_FILE is set, The plugin read a file specified ENV_FILE instead of .env file.

Changed

  • Update Gradle to 6.9
  • Update Kotlin to 1.4.20

[1.1.0] - 2020-04-21

Added

  • (Map<String, String>) env.allVariables to get all environment variables includes variables specified in .env files. #5

[1.0.2] - 2020-02-12

Fixed

  • Fix incorrect resolving order.

[1.0.1] - 2020-02-12

Fixed

  • Fix gradle plugin metadata.

[1.0.0] - 2020-02-12

Added

  • Initial release.