kiteConfig

Everything KiteConfig resolved, readable from any project in the build.

import io.github.yuroyami.kiteconfig.kiteConfig

android {
defaultConfig {
versionCode = kiteConfig.versionCode.get()
}
}

The returned view is read-only: configure the plugin in the root build file and read it everywhere else. The model is frozen before subprojects are evaluated, so what you read is what the build uses. Two values are the exception and settle later: see KiteConfigValues.canonicalLocales and KiteConfigValues.resolvedSharedProjectPath.

This reads across projects, so it is not compatible with Gradle Isolated Projects. Neither is the rest of the plugin.

If the plugin is missing from the build entirely, this import does not resolve and Kotlin reports that first. The exception below covers the narrower case where the plugin is on the classpath but was never applied to the root, for example when it was declared with apply false.

Throws

GradleException

if the plugin is on the classpath but not applied to the root project.