forked from spacecowboy/Feeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (33 loc) · 1014 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
28
29
30
31
32
33
34
35
36
37
38
39
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
google()
}
}
plugins {
alias(libs.plugins.android.application).apply(false)
alias(libs.plugins.kotlin.android).apply(false)
alias(libs.plugins.kotlin.ksp).apply(false)
alias(libs.plugins.kotlin.parcelize).apply(false)
alias(libs.plugins.kotlin.jvm).apply(false)
alias(libs.plugins.kotlin.serialization).apply(false)
alias(libs.plugins.ktlint.gradle).apply(false)
}
allprojects {
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
}
}
subprojects {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
// Treat all Kotlin warnings as errors
allWarningsAsErrors = false
// freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
// freeCompilerArgs += '-Xopt-in=kotlin.Experimental'
// Set JVM target to 1.8
jvmTarget = "1.8"
}
}
}