The build-logic
folder defines project-specific convention plugins, used to keep a single
source of truth for common module configurations.
- Navigate to Your Project's Root Directory
- Add the Repository as a Submodule:
git submodule add [email protected]:MrAdkhambek/android-convention.git
- Change the name of the folder to build-logic
git mv android-convention build-logic
- Modify your
settings.gradle.kts
setting the path of toml.
pluginManagement {
includeBuild("build-logic")
...
}
...
dependencyResolutionManagement {
versionCatalogs {
create("libs") { from(files("build-logic/gradle/libraries.versions.toml")) }
}
...
}
Kotlin
plugins {
id("android-application-conventions")
}
Groovy
plugins {
id 'android-application-conventions'
}