-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
27 lines (24 loc) · 885 Bytes
/
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.5.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
id("org.jlleitschuh.gradle.ktlint") version "11.3.1" apply false
}
allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
filter {
exclude("*.gradle.kts")
exclude {
it.file.path.contains("${layout.buildDirectory}/generated/")
}
}
}
}
rootProject.file(".env").readLines().forEach { line ->
if (line.isNotBlank()) {
val splits = line.split("=")
val env = splits[0] to splits.subList(1, splits.size).joinToString("")
System.setProperty(env.first, env.second)
}
}