-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
26 lines (23 loc) · 944 Bytes
/
Copy pathbuild.gradle.kts
File metadata and controls
26 lines (23 loc) · 944 Bytes
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
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.hilt.android) apply false
alias(libs.plugins.ksp) apply false
}
allprojects {
// Configure Java to use our chosen language level. Kotlin will automatically pick this up.
// See https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support
plugins.withType<JavaBasePlugin>().configureEach {
extensions.configure<JavaPluginExtension> {
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.withType<KotlinCompilationTask<*>>().configureEach {
compilerOptions {
freeCompilerArgs.add("-Xannotation-default-target=param-property")
}
}
}