Skip to content

deps: bump me.paulschwarz:spring-dotenv from 4.0.0 to 5.1.0 in /samples/java/login-auth-code#70

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/samples/java/login-auth-code/me.paulschwarz-spring-dotenv-5.1.0
Closed

deps: bump me.paulschwarz:spring-dotenv from 4.0.0 to 5.1.0 in /samples/java/login-auth-code#70
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/samples/java/login-auth-code/me.paulschwarz-spring-dotenv-5.1.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 6, 2026

Bumps me.paulschwarz:spring-dotenv from 4.0.0 to 5.1.0.

Release notes

Sourced from me.paulschwarz:spring-dotenv's releases.

Release 5.1.0

Install

Recommended: use the BOM to keep versions aligned.

Gradle (BOM + choose one module)

dependencies {
    implementation(platform("me.paulschwarz:spring-dotenv-bom:5.1.0"))
// Choose one:
// developmentOnly("me.paulschwarz:spring-dotenv")
// developmentOnly("me.paulschwarz:springboot3-dotenv")
// developmentOnly("me.paulschwarz:springboot4-dotenv")
developmentOnly("me.paulschwarz:springboot3-dotenv")

}

Maven (BOM + choose one module)

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>me.paulschwarz</groupId>
            <artifactId>spring-dotenv-bom</artifactId>
            <version>5.1.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

Then add one:

  • Spring Framework (no Boot): me.paulschwarz:spring-dotenv
  • Spring Boot 3: me.paulschwarz:springboot3-dotenv
  • Spring Boot 4: me.paulschwarz:springboot4-dotenv
<dependency>
    <groupId>me.paulschwarz</groupId>
    <artifactId>springboot3-dotenv</artifactId>
    <optional>true</optional>
</dependency>

... (truncated)

Changelog

Sourced from me.paulschwarz:spring-dotenv's changelog.

[5.1.0] – 2026-01-02

✨ Enhancements

Relaxed binding for springdotenv.* and .env entries is supported only when running under Spring Boot. Plain Spring Framework uses strict key resolution.

Relaxed binding for springdotenv.* configuration

  • Full Spring Boot–style relaxed binding is now supported for all springdotenv.* configuration keys.
  • Configuration can be supplied interchangeably via:
    • kebab-case (springdotenv.ignore-if-missing)
    • camelCase (springdotenv.ignoreIfMissing)
    • uppercase environment variables (SPRINGDOTENV_IGNORE_IF_MISSING)
  • Behavior is delegated to Spring Boot’s Binder, ensuring consistency with native Boot configuration rules.

Relaxed binding for .env file entries

  • Keys defined inside .env files now participate in relaxed name resolution when running under Spring Boot.
  • This allows seamless access across common naming styles (dots, dashes, underscores) without duplicating entries in .env.
  • Behavior aligns with Spring Boot’s native environment-variable resolution semantics.
  • In plain Spring Framework applications, .env keys are resolved strictly by exact name.

Deterministic precedence between legacy and renamed keys

  • When both legacy and new configuration keys are present:
    • The new canonical key wins.
    • Example:
      springdotenv.exportToSystemProperties overrides the deprecated springdotenv.systemProperties.
  • Legacy keys remain supported for compatibility, with clear precedence rules.

🧪 Testing

  • Added focused smoke tests to validate:
    • Relaxed binding across naming variants
    • Partial configuration scenarios (defaults + overrides)
    • Correct precedence between legacy and canonical keys
  • Tests explicitly avoid global system property pollution.

🧱 Internal changes

  • Introduced a Boot-specific relaxed configuration loader that:
    • Reuses Spring Boot’s binding infrastructure
    • Avoids re-implementing relaxed-binding logic
  • Clear separation between:
    • Spring-only behavior (exact keys)
    • Spring Boot behavior (relaxed binding via Binder)

... (truncated)

Commits
  • dde034e Add back javadoc needed for publishing
  • a5d919c Update CHANGELOG for version 5.1.0
  • f26b88e Change instruction to use "implementation" for bom and developmentOnly for li...
  • 1a93637 #60 Fix regression: Load .env even when exporting to system properties
  • ad8cedb #16 Explain relaxed vs strict binding
  • 65882d5 #16 Improve relaxed binding implementation
  • 35d132d #16 Support relaxed binding
  • 2adebf2 disable parallel execution of tests
  • b8fd919 encourage the use of "development only" mode
  • d730366 fix local publishing version
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [me.paulschwarz:spring-dotenv](https://github.com/paulschwarz/spring-dotenv) from 4.0.0 to 5.1.0.
- [Release notes](https://github.com/paulschwarz/spring-dotenv/releases)
- [Changelog](https://github.com/paulschwarz/spring-dotenv/blob/main/CHANGELOG.md)
- [Commits](paulschwarz/spring-dotenv@v4.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: me.paulschwarz:spring-dotenv
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 6, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot requested a review from a team as a code owner May 6, 2026 08:00
@ksroda-sa ksroda-sa requested review from ksroda-sa and removed request for a team May 6, 2026 11:39
@ksroda-sa ksroda-sa closed this May 6, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 6, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/maven/samples/java/login-auth-code/me.paulschwarz-spring-dotenv-5.1.0 branch May 6, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant