generated from jwstegemann/fritz2-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (45 loc) · 1.53 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
plugins {
kotlin("multiplatform") version "1.6.10"
application
id("com.google.devtools.ksp") version "1.6.10-1.0.2"
}
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") // new repository here
// maven("https://packages.jetbrains.team/maven/p/ki/maven")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "15"
}
}
kotlin {
jvm()
js(IR) {
browser()
}.binaries.executable()
sourceSets {
val commonMain by getting {
dependencies {
implementation("dev.fritz2:core:0.14.1")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.10")
implementation("org.jetbrains.kotlin:kotlin-script-runtime:1.6.10")
// see https://components.fritz2.dev/
implementation("dev.fritz2:components:0.14.1")
}
}
val jsMain by getting {
dependencies {
// implementation("io.kinference:inference-core-js:0.1.10")
implementation(npm("onnxruntime-web", "1.10.0", generateExternals = false))
}
}
}
}
dependencies {
add("kspMetadata", "dev.fritz2:lenses-annotation-processor:0.14.1")
}
kotlin.sourceSets.commonMain { kotlin.srcDir("build/generated/ksp/commonMain/kotlin") }
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().all {
if (name != "kspKotlinMetadata") dependsOn("kspKotlinMetadata")
}