Search Gradle plugins

com.eventbus.autoregister

Owner: wugang

利用Gradle插件实现 EventBus 自动在Activity/Fragment/View中注册

https://juejin.im/post/5d8adf5d518825091e0fd999

Sources: https://github.com/lwugang/EventBusAutoRegister

Version 1.0.0 (latest)

Created 25 September 2019.

利用Gradle插件实现 EventBus 自动在Activity/Fragment/View中注册

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.eventbus.autoregister") version "1.0.0"
}

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.eventbus.autoregister:com.eventbus.autoregister.gradle.plugin:1.0.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.eventbus.autoregister")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.eventbus.autoregister:com.eventbus.autoregister.gradle.plugin:1.0.0")
      }
    }
    
    apply(plugin = "com.eventbus.autoregister")
  • Applying plugins to all subprojects .