generated from jwstegemann/fritz2-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (37 loc) · 1.02 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
plugins {
kotlin("multiplatform") version "1.7.20"
id("com.google.devtools.ksp") version "1.7.20-1.0.6"
}
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
val fritz2Version = "1.0-RC5"
kotlin {
jvm()
js(IR) {
browser()
}.binaries.executable()
sourceSets {
val commonMain by getting {
dependencies {
implementation("dev.fritz2:core:$fritz2Version")
}
}
val jvmMain by getting {
dependencies {
}
}
val jsMain by getting {
dependencies {
}
}
}
}
dependencies {
add("kspCommonMainMetadata", "dev.fritz2:lenses-annotation-processor:$fritz2Version")
}
kotlin.sourceSets.commonMain { kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin") }
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().all {
if (name != "kspCommonMainKotlinMetadata") dependsOn("kspCommonMainKotlinMetadata")
}