-
Notifications
You must be signed in to change notification settings - Fork 65
/
build.gradle.kts
40 lines (32 loc) · 947 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
36
37
38
39
40
// Copyright (C) 2022 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.compose)
alias(libs.plugins.mosaic)
application
}
application { mainClass.set("com.slack.circuit.sample.counter.mosaic.jvm.Main") }
version = "1.0.0-SNAPSHOT"
kotlin {
// region KMP Targets
jvm()
// endregion
applyDefaultHierarchyTemplate()
sourceSets {
commonMain {
dependencies {
implementation(projects.samples.counter)
implementation(projects.circuitFoundation)
}
}
// TODO is there a multiplatform way to do this?
jvmMain { dependencies { implementation(libs.jline) } }
}
targets.withType<KotlinJvmTarget> {
// Needed for 'application' plugin.
withJava()
}
}
mosaic { kotlinCompilerPlugin.set(libs.compose.compiler.map { it.toString() }) }