Search Gradle plugins

Version 3.1.2 (latest)

Created 06 July 2024.

Decide what to configure based on changes relative to `origin/main`

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.diffplug.if-git-diff") version "3.1.2"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.diffplug.if-git-diff:com.diffplug.if-git-diff.gradle.plugin:3.1.2")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.diffplug.if-git-diff")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.diffplug.if-git-diff:com.diffplug.if-git-diff.gradle.plugin:3.1.2")
      }
    }
    
    apply(plugin = "com.diffplug.if-git-diff")
  • Applying plugins to all subprojects .