Search Gradle plugins

com.eventbus.autoregister

Owner: wugang

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

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

Version 1.0.0 (latest)

Created 25 September 2019.

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

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.liwg.eventbus.autoregister:autoRegisterPlugin:1.0.0"
  }
}

apply plugin: "com.eventbus.autoregister"

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.liwg.eventbus.autoregister:autoRegisterPlugin:1.0.0")
  }
}

apply(plugin = "com.eventbus.autoregister")

Learn how to apply plugins to subprojects