Search Gradle plugins

Version 1.3

Created 15 January 2022.

Configure an existing task to run testcontainers in its doFirst block

Using the plugins DSL:

plugins {
  id("io.github.stackunderflow111.testcontainers") version "1.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.stackunderflow111:testcontainers-plugin:1.3")
  }
}

apply(plugin = "io.github.stackunderflow111.testcontainers")

Using the plugins DSL:

plugins {
  id "io.github.stackunderflow111.testcontainers" version "1.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.stackunderflow111:testcontainers-plugin:1.3"
  }
}

apply plugin: "io.github.stackunderflow111.testcontainers"

Learn how to apply plugins to subprojects