-
Notifications
You must be signed in to change notification settings - Fork 41
/
build.gradle.kts
135 lines (124 loc) · 5.28 KB
/
build.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
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
// Top-level build file where you can add configuration options common
// to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
}
// This is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.test) apply false
alias(libs.plugins.baseline.profile) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.kotlin.plugin.compose) apply false
alias(libs.plugins.kotlin.plugin.parcelize) apply false
alias(libs.plugins.kotlin.plugin.serialization) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.ktlint) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.crashlytics) apply false
alias(libs.plugins.sqldelight) apply false
alias(libs.plugins.buildkonfig) apply false
alias(libs.plugins.license.check) apply false
alias(libs.plugins.versions) apply true
alias(libs.plugins.version.catalog.update) apply true
}
subprojects {
if (
name == "androidApp" ||
name == "desktopApp"
) {
apply(plugin = rootProject.libs.plugins.license.check.get().pluginId)
configure<app.cash.licensee.LicenseeExtension> {
allow("Apache-2.0")
allow("MIT")
allow("EPL-1.0")
allow("CC0-1.0")
allow("BSD-2-Clause")
//
// Android
//
allowUrl("https://developer.android.com/studio/terms.html") {
because("Android Developers")
}
allowUrl("https://developer.android.com/guide/playcore/license") {
because("Android Developers")
}
allowUrl("https://developers.google.com/ml-kit/terms") {
because("Google Developers")
}
//
// Self-hosted
//
allowUrl("https://github.com/devsrsouza/compose-icons/blob/master/LICENSE") {
because("MIT License, but self-hosted copy of the license")
}
allowUrl("https://www.bouncycastle.org/licence.html") {
because("MIT License, but self-hosted copy of the license")
}
allowUrl("https://spdx.org/licenses/MIT.txt") {
because("MIT License, but self-hosted copy of the license")
}
allowUrl("https://opensource.org/licenses/MIT") {
because("MIT License, but self-hosted copy of the license")
}
allowUrl("https://opensource.org/licenses/mit-license.php") {
because("MIT License, but self-hosted copy of the license")
}
allowUrl("https://github.com/icerockdev/moko-resources/blob/master/LICENSE.md") {
because("Apache License-2.0, but self-hosted copy of the license")
}
allowUrl("https://github.com/icerockdev/moko-graphics/blob/master/LICENSE.md") {
because("Apache License-2.0, but self-hosted copy of the license")
}
allowUrl("https://github.com/icerockdev/moko-parcelize/blob/master/LICENSE.md") {
because("Apache License-2.0, but self-hosted copy of the license")
}
allowUrl("https://github.com/WonderzGmbH/nativefiledialog-java/blob/master/LICENSE") {
because("zlib License, but self-hosted copy of the license")
}
allowDependency("com.github.AChep", "bindin", "1.4.0") {
because("MIT License, but self-hosted copy of the license")
}
allowDependency("com.mayakapps.compose", "window-styler", "0.3.2") {
because("MIT License, but self-hosted copy of the license")
}
allowDependency("com.mayakapps.compose", "window-styler-jvm", "0.3.2") {
because("MIT License, but self-hosted copy of the license")
}
allowDependency("commons-logging", "commons-logging", "1.0.4") {
because("Apache License-2.0, but self-hosted copy of the license")
}
allowDependency("com.github.jai-imageio", "jai-imageio-core", "1.4.0") {
// https://github.com/jai-imageio/jai-imageio-core/blob/master/LICENSE.txt
because("Sun Microsystems, Inc")
}
allowDependency("com.ibm.icu", "icu4j", "73.1") {
because("UNICODE LICENSE V3")
}
//
// Other
//
allowUrl("https://www.zetetic.net/sqlcipher/license/") {
because("BDS-like License")
}
allowUrl("http://www.bouncycastle.org/licence.html") {
because("MIT-like License")
}
}
}
}
allprojects {
apply(plugin = rootProject.libs.plugins.ktlint.get().pluginId)
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
version.set(rootProject.libs.versions.ktlint.get())
}
}