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

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.squareup.anvil") version "2.3.5-SNAPSHOT"
}

See also:

  • The legacy method of plugin application.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.squareup.anvil:gradle-plugin:2.3.5-SNAPSHOT")
      }
    }
    
    apply(plugin = "com.squareup.anvil")
  • Applying plugins to all subprojects .