forked from leycm/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
59 lines (48 loc) · 1.8 KB
/
settings.gradle.kts
File metadata and controls
59 lines (48 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import java.net.URL
import java.nio.file.Files
/**
* ──────────────────────────────────────────────
* Root Gradle Settings (Dependency + Plugin Mgmt)
* ──────────────────────────────────────────────
*/
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
// Global Kotlin plugin version for all modules
plugins {
kotlin("jvm") version "2.2.10"
}
}
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
mavenCentral()
}
/**
* Loads a remote libs.versions.toml from LeyCM’s repository.
* This keeps version catalogs consistent across projects.
*/
versionCatalogs {
create("libs") {
val remoteUrl = "https://raw.githubusercontent.com/leycm/leycm/refs/heads/main/files/libs.version.toml"
val localFile = file("$rootDir/.gradle/tmp-libs.versions.toml")
println("[✓] Loading global libs.versions.toml ...")
localFile.parentFile.mkdirs()
if (localFile.exists()) localFile.delete()
@Suppress("DEPRECATION")
URL(remoteUrl).openStream().use { input ->
Files.copy(input, localFile.toPath())
}
from(files(localFile))
}
}
}
// ─────────────────────────────
// Project Includes
// ─────────────────────────────
rootProject.name = "ley-flux"
include("api", "common")
project(":api").projectDir = file("flx-api")
project(":common").projectDir = file("flx-common")