-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
35 lines (30 loc) · 972 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
plugins {
kotlin("multiplatform") version "2.0.0"
id("com.google.devtools.ksp") version "2.0.0-1.0.22"
}
kotlin {
listOf(
linuxX64(),
macosX64(), macosArm64(),
).forEach {
it.binaries.executable()
}
sourceSets {
commonMain {
dependencies {
implementation("me.tatarka.inject:kotlin-inject-runtime-kmp:0.7.1")
}
}
}
}
// KSP will eventually have better multiplatform support and we'll be able to simply have
// `ksp libs.kotlinInject.compiler` in the dependencies block of each source set
// https://github.com/google/ksp/pull/1021
dependencies {
add("kspLinuxX64", "me.tatarka.inject:kotlin-inject-compiler-ksp:0.7.1")
add("kspMacosX64", "me.tatarka.inject:kotlin-inject-compiler-ksp:0.7.1")
add("kspMacosArm64", "me.tatarka.inject:kotlin-inject-compiler-ksp:0.7.1")
}
tasks.wrapper {
jarFile = file("../../gradle/wrapper/gradle-wrapper.jar")
}