-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
161 lines (148 loc) · 5.45 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
161 lines (148 loc) · 5.45 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
// ── Workspace Library Linker (managed by /lib-integrate) ──────────────────
// Edit lib-integrate.properties to add/remove libraries. Never edit this block.
// Path-existence guard: if library not cloned locally → silently uses Maven Central.
// Groups libraries by path so multiple modules from same build use one includeBuild.
val libProps = java.util.Properties().apply {
file("lib-integrate.properties").takeIf { it.exists() }?.inputStream()?.use { load(it) }
}
data class LibEntry(val artifact: String, val module: String)
val pathToEntries = mutableMapOf<String, MutableList<LibEntry>>()
libProps.stringPropertyNames()
.filter { it.endsWith(".local") && libProps[it] == "true" }
.forEach { key ->
val lib = key.removeSuffix(".local")
val path = libProps["$lib.path"] as? String ?: return@forEach
val module = libProps["$lib.module"] as? String ?: return@forEach
val artifact = libProps["$lib.artifact"] as? String ?: return@forEach
// Normalize ".." segments before existence check -- Java's File.exists()
// doesn't collapse ".." past filesystem root on Windows, so the bare
// file() check can spuriously pass on CI runners.
val resolved = settingsDir.toPath().resolve(path).normalize().toFile()
if (!resolved.isDirectory) {
println("\uD83D\uDCE6 [lib-integrate] $lib \u2192 Maven Central (source not found at $path)")
return@forEach
}
println("\u26A1 [lib-integrate] $lib \u2192 local source ($path)")
pathToEntries.getOrPut(path) { mutableListOf() }.add(LibEntry(artifact, module))
}
pathToEntries.forEach { (path, entries) ->
includeBuild(path) {
dependencySubstitution {
entries.forEach { (artifact, module) ->
substitute(module(artifact)).using(project(module))
}
}
}
}
// ── End lib-integrate managed block ───────────────────────────────────────
pluginManagement {
includeBuild("build-logic")
repositories {
mavenLocal()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.PREFER_PROJECT
repositories {
mavenLocal()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("1.0.0")
id("org.ajoberstar.reckon.settings") version("0.19.2")
}
buildCache {
local {
isEnabled = true
directory = File(rootDir, "build-cache")
}
}
extensions.configure<org.ajoberstar.reckon.gradle.ReckonExtension> {
setDefaultInferredScope("patch")
stages("beta", "rc", "final")
setScopeCalc { java.util.Optional.of(org.ajoberstar.reckon.core.Scope.PATCH) }
setScopeCalc(calcScopeFromProp().or(calcScopeFromCommitMessages()))
setStageCalc(calcStageFromProp())
setTagWriter { it.toString() }
}
rootProject.name = "MifosXOpenBanking"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(":cmp-shared")
include(":cmp-android")
include(":cmp-desktop")
include(":cmp-web")
include(":cmp-navigation")
include(":core:analytics")
include(":core:common")
include(":core:data")
include(":core:database")
include(":core:datastore")
include(":core:designsystem")
include(":core:domain")
include(":core:model")
include(":core:network")
include(":core:store")
include(":core:ui")
include(":feature:home")
include(":feature:accounts")
include(":feature:account-detail")
include(":feature:transactions")
include(":feature:transaction-detail")
include(":feature:scheduled-payments")
include(":feature:statement-detail")
include(":feature:beneficiaries")
include(":feature:product")
include(":feature:consent-list")
include(":feature:consent-detail")
include(":feature:direct-debits")
include(":feature:statements")
include(":feature:standing-orders")
include(":feature:settings")
include(":feature:account-holder")
include(":feature:login")
include(":feature:consent-callback")
include(":feature:send-money")
include(":feature:payment-status")
include(":feature:payment-consent")
include(":feature:payments-hub")
include(":feature:payments-schedule-payment")
include(":feature:payments-standing-order")
include(":feature:vrp:vrp-consents")
include(":feature:vrp:vrp-setup")
include(":feature:vrp:vrp-callback")
include(":feature:vrp:vrp-payment")
include(":core-base:analytics")
include(":core-base:common")
include(":core-base:database")
include(":core-base:datastore")
include(":core-base:designsystem")
include(":core-base:network")
include(":core-base:platform")
include(":core-base:security")
include(":core-base:store")
include(":core-base:ui")
check(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
"""
This project requires JDK 17+ but it is currently using JDK ${JavaVersion.current()}.
Java Home: [${System.getProperty("java.home")}]
https://developer.android.com/build/jdks#jdk-config-in-studio
""".trimIndent()
}