generated from mpetuska/template-kmp-library
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
48 lines (45 loc) · 960 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
41
42
43
44
45
46
47
48
plugins {
id("convention.library-mpp")
id("convention.publishing-nexus")
id("convention.publishing-mpp")
if (System.getenv("CI") == null) id("convention.git-hooks")
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
kotlin {
sourceSets {
commonMain {
dependencies {
api(project(":lib:kon-core"))
}
}
}
val serializationTargets = setOf(
linuxX64(),
linuxArm64(),
linuxArm32Hfp(),
iosArm32(),
iosArm64(),
iosX64(),
iosSimulatorArm64(),
watchosArm32(),
watchosArm64(),
watchosX86(),
watchosX64(),
watchosSimulatorArm64(),
tvosArm64(),
tvosX64(),
tvosSimulatorArm64(),
macosX64(),
macosArm64(),
mingwX86(),
mingwX64(),
)
serializationTargets.map {
it.compilations["main"].defaultSourceSet.dependencies { api(project(":lib:kon-serialization")) }
}
}