MVN

org.springframework.boot : spring-boot-testcontainers

Maven & Gradle

Aug 24, 2023
72.8k stars

spring-boot-testcontainers · Spring Boot Testcontainers Support

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-testcontainers</artifactId>
    <version>3.1.3</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of org.springframework.boot : spring-boot-testcontainers to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 3.1.3

All Versions

Choose a version of org.springframework.boot : spring-boot-testcontainers to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
3.1.x
spring-boot-testcontainers-3.1.3
spring-boot-testcontainers-3.1.2
spring-boot-testcontainers-3.1.1
spring-boot-testcontainers-3.1.0

How to add a dependency to Maven

Add the following org.springframework.boot : spring-boot-testcontainers maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-testcontainers</artifactId>
    <version>3.1.3</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following org.springframework.boot : spring-boot-testcontainers gradle dependency to your build.gradle file:

implementation 'org.springframework.boot:spring-boot-testcontainers:3.1.3'

Gradle Kotlin DSL: Add the following org.springframework.boot : spring-boot-testcontainers gradle kotlin dependency to your build.gradle.kts file:

implementation("org.springframework.boot:spring-boot-testcontainers:3.1.3")

How to add a dependency to SBT Scala

SBT Scala: Add the following org.springframework.boot : spring-boot-testcontainers sbt scala dependency to your build.sbt file:

libraryDependencies += "org.springframework.boot" % "spring-boot-testcontainers" % "3.1.3"