-
Notifications
You must be signed in to change notification settings - Fork 51
/
settings.gradle.kts
96 lines (74 loc) · 2.48 KB
/
settings.gradle.kts
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
// # walt.id identity build configuration
fun getSetting(name: String) = providers.gradleProperty(name).orNull.toBoolean()
val enableAndroidBuild = getSetting("enableAndroidBuild")
val enableIosBuild = getSetting("enableIosBuild")
infix fun String.whenEnabled(setting: Boolean) = if (setting) this else null
fun String.group(vararg elements: String?) = elements.map { it?.let { "$this:$it" } }.toTypedArray()
// Build setup:
// Shorthands
val libraries = ":waltid-libraries"
val applications = ":waltid-applications"
val services = ":waltid-services"
val modules = listOf(
* "$libraries:crypto".group(
"waltid-crypto",
"waltid-crypto-oci",
"waltid-crypto-android" whenEnabled enableAndroidBuild,
"waltid-crypto-ios" whenEnabled enableIosBuild,
"waltid-target-ios" whenEnabled enableIosBuild,
"waltid-target-ios:implementation" whenEnabled enableIosBuild,
),
* "$libraries:credentials".group(
"waltid-verifiable-credentials",
"waltid-mdoc-credentials",
"waltid-dif-definitions-parser",
"waltid-verification-policies"
),
* "$libraries:protocols".group(
"waltid-openid4vc"
),
* "$libraries:sdjwt".group(
"waltid-sdjwt",
"waltid-sdjwt-ios" whenEnabled enableIosBuild,
),
* "$libraries:auth".group(
"waltid-ktor-authnz",
"waltid-permissions",
"waltid-idpkit"
),
"$libraries:waltid-core-wallet",
/*
* "$libraries:util".group(
"waltid-reporting"
),
*/
"$libraries:waltid-did",
"$libraries:waltid-java-compat",
"$libraries:waltid-library-commons",
// Service commons
"$services:waltid-service-commons",
"$services:waltid-service-commons-test",
// Services based on libs
"$services:waltid-issuer-api",
"$services:waltid-verifier-api",
"$services:waltid-wallet-api",
// Service tests
"$services:waltid-e2e-tests",
// CLI
"$applications:waltid-cli",
":waltid-applications:waltid-android" whenEnabled enableAndroidBuild,
"$applications:waltid-openid4vc-ios-testApp" whenEnabled enableIosBuild,
"$applications:waltid-openid4vc-ios-testApp:shared" whenEnabled enableIosBuild
).filterNotNull()
include(*modules.toTypedArray())
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
rootProject.name = "waltid-identity"