Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.palantir.consistent-versions") version "2.27.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.palantir.gradle.consistentversions:gradle-consistent-versions:2.27.0")
  }
}

apply(plugin = "com.palantir.consistent-versions")

Using the plugins DSL:

plugins {
  id "com.palantir.consistent-versions" version "2.27.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.palantir.gradle.consistentversions:gradle-consistent-versions:2.27.0"
  }
}

apply plugin: "com.palantir.consistent-versions"

Learn how to apply plugins to subprojects