-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle.kts
42 lines (35 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import org.jlleitschuh.gradle.ktlint.KtlintExtension
plugins {
// Kotlin
// alias(libs.plugins.kotlin.android) apply false
// alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.serialization) apply false
// alias(libs.plugins.kotlin.parcelize) apply false
// Android
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
// Other
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.compose.jb) apply false
alias(libs.plugins.moko.resources) apply false
alias(libs.plugins.ktlint) apply false
}
allprojects {
group = "dev.zt64.hyperion"
version = "1.0.0"
if (project.name != "resources") {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
configure<KtlintExtension> {
version = rootProject.libs.versions.ktlint
}
}
}
subprojects {
tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.fromTarget(rootProject.libs.versions.jvm.get()))
}
}
}