-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.gradle.kts
51 lines (46 loc) · 1.68 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
43
44
45
46
47
48
49
50
51
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
buildscript {
dependencies {
classpath(libs.gradle.tools)
classpath(libs.gradle.google)
classpath(libs.gradle.firebaseCrashlytic)
}
}
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(kotlinx.plugins.kotlinAndroid) apply false
alias(kotlinx.plugins.kotlinSerilization) apply false
alias(libs.plugins.jetbrainCompose) apply false
alias(kotlinx.plugins.compose.compiler) apply false
alias(kotlinx.plugins.dokka) apply false
alias(kotlinx.plugins.ksp) apply false
alias(libs.plugins.sqldelight) apply false
alias(libs.plugins.moko) apply false
alias(libs.plugins.buildkonfig) apply false
// id("nl.littlerobots.version-catalog-update") version "0.6.1"
}
subprojects {
afterEvaluate {
// Remove log pollution until Android support in KMP improves.
project.extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()
?.let { kmpExt ->
kmpExt.sourceSets.removeAll {
setOf(
"androidAndroidTestRelease",
"androidTestFixtures",
"androidTestFixturesDebug",
"androidTestFixturesRelease",
).contains(it.name)
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = ProjectConfig.desktopJvmTarget.toString()
kotlinOptions.freeCompilerArgs += "-Xexpect-actual-classes"
}
}
}
tasks.register("delete", Delete::class) {
delete(rootProject.buildDir)
}