-
Notifications
You must be signed in to change notification settings - Fork 437
/
build.gradle.kts
62 lines (57 loc) · 1.44 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
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
// alias(libs.plugins.ksp)
}
apply(plugin = "io.kotest.multiplatform")
apply(from = property("TEST_COVERAGE"))
apply(from = property("ANIMALSNIFFER_MPP"))
kotlin {
sourceSets {
commonMain {
dependencies {
api(projects.arrowCore)
api(libs.kotlin.stdlibCommon)
}
}
commonTest {
dependencies {
implementation(projects.arrowOpticsTest)
}
}
jvmMain {
dependencies {
implementation(libs.kotlin.stdlibJDK8)
api(libs.kotlin.reflect)
}
}
jvmTest {
dependencies {
implementation(libs.kotlin.stdlibJDK8)
implementation(libs.junitJupiterEngine)
implementation(libs.kotlin.reflect)
}
}
jsMain {
dependencies {
implementation(libs.kotlin.stdlibJS)
}
}
}
}
//fun DependencyHandlerScope.kspTest(dependencyNotation: Any): Unit {
// val exclude = setOf("commonTest", "nativeTest")
// add("kspMetadata", dependencyNotation)
// kotlin.sourceSets
// .filter { it.name !in exclude && it.name.contains("Test") }
// .forEach {
// val task = "ksp${it.name.capitalize()}"
// configurations.findByName(task)?.let {
// add(task, dependencyNotation)
// }
// }
//}
//dependencies {
// kspTest(projects.arrowOpticsKspPlugin)
//}