com.squareup.anvil
Owner: Ralf Wondratschek
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
Version 2.0.6-SNAPSHOT
Created 06 October 2020.
A Kotlin compiler plugin to make dependency injection with Dagger 2 easier by automatically merging Dagger modules and component interfaces.
Add this plugin to your build using the plugins DSL:
plugins {
id("com.squareup.anvil") version "2.0.6-SNAPSHOT"
}
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.squareup.anvil:com.squareup.anvil.gradle.plugin:2.0.6-SNAPSHOT") }
It can then be applied in the precompiled script plugin:plugins { id("com.squareup.anvil") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("com.squareup.anvil:com.squareup.anvil.gradle.plugin:2.0.6-SNAPSHOT") } } apply(plugin = "com.squareup.anvil")
- Applying plugins to all subprojects .