-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
36 lines (31 loc) · 1.14 KB
/
build.gradle.kts
File metadata and controls
36 lines (31 loc) · 1.14 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
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.composeMultiplatform) apply false
alias(libs.plugins.composeCompiler) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.ktlint) apply false
}
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.removeSurrounding("\"").removeSurrounding("'"))
}
}
group = "com.ryinex.kotlin"
version = System.getProperty("VERSION_NAME") ?: ""
subprojects {
apply(plugin = rootProject.libs.plugins.ktlint.get().pluginId)
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
debug.set(true)
filter {
exclude("*.gradle.kts")
exclude {
it.file.path.contains("${buildDir}/generated/")
}
}
}
}