How uteke/gradle-kotlin-convention-plugins works
Project type and purpose
• This is a multi-module Gradle project that provides a set of Kotlin DSL “conventions” plugins (build-logic) and an Android application (app) that demonstrates their usage.
• Its goal is to centralize and standardize Gradle dependency declarations and build configurations via reusable plugins.
File structure
Top-level:
• settings.gradle.kts, build.gradle.kts, gradle.properties, gradlew* – standard Gradle wrapper and settings.
• build-logic/ – a self-contained included build defining custom Gradle plugins in Kotlin.
• app/ – an Android application module.
build-logic/src/main/kotlin:
• AppConfig.kt, VersionCatalogExtensions.kt – shared constants & version handling.
• kotlin-conventions.gradle.kts, kotlin-library-conventions.gradle.kts, kotlin-android-library-conventions.gradle.kts, test-conventions.gradle.kts – plugin implementations.
app/src – typical Android project (MainActivity, Fragments, resources).
README for additional insights
• Four convention plugins are declared:
• kotlin-conventions
• kotlin-library-conventions
• kotlin-android-library-conventions
• test-conventions
• These are published internally and then applied in module build scripts to enforce consistent configurations.