Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Glossary

Terms as Kargo uses them. Several have different meanings in Gradle or Maven; those differences are called out.

Artifact

A file published to a Maven repository — a JAR, a POM, a klib. Identified by a coordinate.

BOM

Bill of materials. A POM that declares versions for a family of artifacts without pulling any of them in. Imported with scope = "import". See Dependencies.

BuildConfig

A generated Kotlin object holding compile-time constants from [build-config], flavors, and the active profile. See Flavors and Variants.

Build cache

A content-addressed store of compiled output, keyed by a hash of every compilation input. Distinct from the artifact cache, which holds downloaded dependencies. See The Build Cache.

Compilation unit

One compiler invocation: a set of sources, a classpath, and compiler arguments producing one output. The granularity at which Kargo fingerprints and caches.

Coordinate

group:artifact:version, for example org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0. The globally unique address of an artifact.

Dimension

An independent axis of flavor variation — tier, environment, brand. Declared in [flavors] dimensions.

expect / actual

Kotlin's mechanism for platform-specific implementations: declare an expect in common code and an actual per platform. See Kotlin Multiplatform.

Fingerprint

A hash of a compilation unit's inputs. Equal fingerprints mean the previous output is still valid. See Incremental Compilation.

Flavor

A named value within a dimension — free or paid in tier. Android calls this a product flavor; Kargo applies the concept to every target.

Intermediate source set

A source set shared by a family of targets, such as iosMain or appleMain, inferred from your target list. See Source Sets.

KAPT

Kotlin Annotation Processing Tool. The older annotation-processing mechanism, which generates Java stubs first. Slower than KSP; use it only for processors that have not migrated.

klib

The Kotlin/Native library format — the Native equivalent of a JAR.

KMP

Kotlin Multiplatform. Compiling one codebase for several platforms.

KSP

Kotlin Symbol Processing. The modern annotation-processing API, operating on Kotlin's own symbol model rather than Java stubs. Declared in [ksp].

Lockfile

Kargo.lock. The exact resolved graph, with checksums. See Lockfile Format.

Manifest

Kargo.toml. The declarative definition of a project. See Manifest Format.

Nearest wins

The conflict-resolution rule: when two paths need different versions of the same artifact, the one declared closest to your project wins. This is Maven's rule. Gradle picks the highest version instead — the most common source of surprise when migrating. See Dependency Resolution.

Profile

A named set of compiler settings — dev, release, or a custom one. Gradle calls the analogous Android concept a build type. See Build Profiles.

Resolution

Turning declared dependencies into an exact set of artifact versions, following transitive dependencies and mediating conflicts.

Scope

Where a dependency applies: compile, runtime, provided, test, import. Gradle's configurations (implementation, api, compileOnly) map onto these — see Coming from Gradle.

Source set

A directory of sources compiled into one or more targets, identified by directory name — commonMain, jvmMain, iosMain. See Source Sets.

Target

A platform compiled for — jvm, android, ios-arm64, js. Declared in [targets]. See Targets.

Toolchain

A downloaded Kotlin compiler installation, or a managed JDK or Android SDK, stored under ~/.kargo/toolchains/. See Toolchains.

Transitive dependency

A dependency of a dependency. Resolved and locked like any other, and the usual subject of kargo tree --why.

Unit graph

The directed graph of compilation units for a build, determining what can compile in parallel and what must wait.

Variant

One flavor per dimension, plus a profile — free-staging-release. The thing that actually gets built.

Workspace

Several Kargo packages built together under one root manifest, sharing a lockfile. Gradle calls this a multi-project build. See Workspaces.