Skip to content

JitPack (unreleased versions)

If you like to live on the bleeding edge, jitpack.io can be used to obtain SNAPSHOT versions. Use the following dependency description instead:

testImplementation "com.github.testcontainers.testcontainers-java:--artifact name--:main-SNAPSHOT"
<dependency>
    <groupId>com.github.testcontainers.testcontainers-java</groupId>
    <artifactId>--artifact name--</artifactId>
    <version>main-SNAPSHOT</version>
</dependency>

A specific git revision (such as 02782d9) can be used as a fixed version instead:

testImplementation "com.github.testcontainers.testcontainers-java:--artifact name--:02782d9"
<dependency>
    <groupId>com.github.testcontainers.testcontainers-java</groupId>
    <artifactId>--artifact name--</artifactId>
    <version>02782d9</version>
</dependency>

The JitPack maven repository must also be declared, e.g.:

repositories {
    maven {
        url "https://jitpack.io"
    }
}
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>