Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.gradle.android.cache-fix") version "1.0.7"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.gradle.android:android-cache-fix-gradle-plugin:1.0.7")
  }
}

apply(plugin = "org.gradle.android.cache-fix")

Using the plugins DSL:

plugins {
  id "org.gradle.android.cache-fix" version "1.0.7"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.gradle.android:android-cache-fix-gradle-plugin:1.0.7"
  }
}

apply plugin: "org.gradle.android.cache-fix"

Learn how to apply plugins to subprojects