Skip to content

Release 5.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Jan 07:06

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>