-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
47 lines (41 loc) · 1.33 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
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("multiplatform") apply false
kotlin("plugin.parcelize") apply false
kotlin("plugin.serialization") apply false
id("com.android.application") apply false
id("com.android.library") apply false
id("org.jetbrains.compose") apply false
id("com.codingfeline.buildkonfig") apply false
id("com.github.johnrengelman.shadow") apply false
id("com.arkivanov.parcelize.darwin") apply false
}
repositories {
mavenCentral()
}
subprojects {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
}
plugins.withId("org.jetbrains.kotlin.multiplatform") {
tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
}
afterEvaluate {
project.extensions.findByType<KotlinMultiplatformExtension>()?.sourceSets?.removeAll {
it.name in setOf(
"androidAndroidTestRelease",
)
}
}
}
tasks.register("stage") {
dependsOn("server:shadowJar")
}