Search Gradle plugins

Version 1.0

Created 24 December 2021.

Configure an existing task to run testcontainers in its doFirst block

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects