Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gradle Dive: Writing Custom Plugins

Gradle Dive: Writing Custom Plugins

Kibet Theophilus

November 15, 2022
Tweet

More Decks by Kibet Theophilus

Other Decks in Programming

Transcript

  1. 26+

  2. - Each module needs a build.gradle - Duplicate scripts in

    each module - Hard to maintain e.g creating a build type
  3. - packages up reusable pieces of build logic, which can

    be used across many different projects and builds. Gradle Plugin
  4. - Written by implementing plugin interface - Applied using a

    unique id - plugins { id(“com.android.library”) } Binary Plugin
  5. - Share build logic across modules - Reduced build script

    size - Migrate all our files to kts Benefits