Uploaded as-is from /home/litruv/dev/vtsmaker/umamo on 2026-11-03. 1347 files. Includes the uncommitted work in progress in :edit, :runtime, and :ui, and the untracked files under module/edit/src/jvmAndroidMain/. History is not carried over. The source repo is https://github.com/umamoorg/umamo.
51 lines
1.9 KiB
Kotlin
51 lines
1.9 KiB
Kotlin
// Settings script — the FIRST thing Gradle evaluates. Declares where plugins and
|
|
// dependencies are fetched from, and which subprojects make up the build.
|
|
|
|
rootProject.name = "umamo"
|
|
|
|
// `pluginManagement` controls plugin resolution. google() is required for the
|
|
// Android Gradle Plugin; gradlePluginPortal() for community plugins (ktlint).
|
|
pluginManagement {
|
|
// Umamo's own convention plugins (umamo.kmp-jvmandroid, umamo.kmp-ios-gate, umamo.test-corpus),
|
|
// as an included build rather than buildSrc: a buildSrc change invalidates the whole build's
|
|
// configuration cache, which is on for this project (see gradle.properties).
|
|
includeBuild("gradle/build-logic")
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
// `dependencyResolutionManagement` centralises repositories for ALL modules, so no
|
|
// module declares its own — keeps the dependency supply chain auditable in one place.
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
// Library modules live under module/, applications under app/. A module's Gradle PATH (e.g.
|
|
// ":format") is kept flat and deliberately independent of its DIRECTORY, so dependency
|
|
// declarations stay terse — project(":format"), not project(":module:format") — while the
|
|
// folder tree stays tidy. Path ≠ directory ≠ package: three separate things.
|
|
// (settings.gradle.kts is just Kotlin, so a local helper removes the repetition.)
|
|
fun includeAt(path: String, dir: String) {
|
|
include(path)
|
|
project(path).projectDir = file(dir)
|
|
}
|
|
|
|
includeAt(":format", "module/format")
|
|
includeAt(":reimport", "module/reimport")
|
|
includeAt(":storage", "module/storage")
|
|
includeAt(":settings", "module/settings")
|
|
includeAt(":render", "module/render")
|
|
includeAt(":runtime", "module/runtime")
|
|
includeAt(":interop", "module/interop")
|
|
includeAt(":edit", "module/edit")
|
|
includeAt(":ui", "module/ui")
|
|
includeAt(":desktop", "app/desktop")
|
|
includeAt(":android", "app/android")
|
|
includeAt(":cli", "app/cli") |