Search Gradle plugins

com.squareup.anvil

A Kotlin compiler plugin to make dependency injection with Dagger 2 easier by automatically merging Dagger modules and component interfaces.

https://github.com/square/anvil

Sources: https://github.com/square/anvil

Using the plugins DSL:

plugins {
  id("com.squareup.anvil") version "2.0.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.squareup.anvil:gradle-plugin:2.0.10")
  }
}

apply(plugin = "com.squareup.anvil")

Using the plugins DSL:

plugins {
  id "com.squareup.anvil" version "2.0.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.squareup.anvil:gradle-plugin:2.0.10"
  }
}

apply plugin: "com.squareup.anvil"

Learn how to apply plugins to subprojects