Skip to content

foodiestudio/convention-plugins

Repository files navigation

convention-plugins

存放一些自定义 gradle plugin。

Compatible Specification

AGP Version Latest Support Version
7.4.x 0.3.x
8.0.x 0.4.x
8.1.x 0.5.x

Quick Start

  • register plugin
// settings.gradle.kts
pluginManagement {
    repositories {
        //...
        maven("https://jitpack.io")
    }
    resolutionStrategy {
        eachPlugin {
            if (requested.id.id.startsWith("foodiestudio")) {
                useModule("com.github.foodiestudio:convention-plugins:$version")
            }
        }
    }
}
  • use plugin in module
plugins {
    id("foodiestudio.android.application.compose") // for example
}

see more information in wiki