-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
124 lines (110 loc) · 3.07 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
kotlin("multiplatform") version "1.9.23"
id("org.jetbrains.kotlinx.benchmark") version "0.4.10"
id("org.jetbrains.kotlin.plugin.allopen") version "1.9.23"
id("com.vanniktech.maven.publish") version "0.28.0"
}
group = "io.github.cvb941"
version = "2.0.0"
repositories {
mavenCentral()
}
kotlin {
jvm {
jvmToolchain(11)
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
compilations.create("benchmark") {
associateWith(compilations.getByName("test"))
}
}
js {
nodejs()
browser {
commonWebpackConfig {
cssSupport {
enabled.set(true)
}
}
}
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs()
linuxX64()
linuxArm64()
mingwX64()
macosX64()
macosArm64()
iosX64()
iosArm64()
watchosX64()
watchosArm32()
watchosArm64()
applyDefaultHierarchyTemplate()
sourceSets {
commonMain {
dependencies {
// Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
}
}
commonTest {
dependencies {
implementation(kotlin("test"))
// Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0")
}
}
val jvmBenchmark by getting {
dependencies {
// Kotlinx Benchmark
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.4.10")
}
}
}
}
benchmark {
targets {
register("jvmBenchmark")
// register("js")
// register("macosArm64")
// register("wasm")
}
}
// For benchmarks
allOpen {
annotation("org.openjdk.jmh.annotations.State")
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
signAllPublications()
pom {
name.set("Parallel Operations")
description.set("Parallel map, reduce and more using coroutines in Kotlin.")
inceptionYear.set("2019")
url.set("https://github.com/cvb941/kotlin-parallel-operations/")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
distribution.set("repo")
}
}
developers {
developer {
id.set("cvb941")
name.set("Lukas Kusik")
url.set("https://github.com/cvb941/")
}
}
scm {
url.set("https://github.com/cvb941/kotlin-parallel-operations/")
connection.set("scm:git:git://github.com/cvb941/kotlin-parallel-operations.git")
developerConnection.set("scm:git:ssh://[email protected]/cvb941/kotlin-parallel-operations.git")
}
}
}