-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathbuild.gradle.kts
86 lines (71 loc) · 2.15 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
plugins {
id("space.kscience.gradle.mpp")
}
kscience {
jvm()
js{
nodejs {
testTask {
useMocha {
timeout = "0"
}
}
}
browser {
useCommonJs()
testTask {
useMocha {
timeout = "0"
}
}
}
}
native()
dependencies {
api(projects.kmathCore)
api("com.github.h0tk3y.betterParse:better-parse:0.4.4")
}
testDependencies {
implementation(projects.kmathComplex)
}
dependencies(jsMain) {
implementation(npm("astring", "1.7.5"))
implementation(npm("binaryen", "117.0.0"))
implementation(npm("js-base64", "3.6.1"))
}
dependencies(jvmMain) {
implementation("org.ow2.asm:asm-commons:9.7.1")
}
}
kotlin {
sourceSets {
filter { it.name.contains("test", true) }
.map(org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet::languageSettings)
.forEach { it.optIn("space.kscience.kmath.UnstableKMathAPI") }
}
}
if (project.properties["space.kscience.kmath.ast.dump.generated.classes"] == "1") {
tasks.withType<org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest> {
jvmArgs("-Dspace.kscience.kmath.ast.dump.generated.classes=1")
}
}
readme {
maturity = space.kscience.gradle.Maturity.EXPERIMENTAL
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
feature(
id = "expression-language",
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/parser.kt"
) { "Expression language and its parser" }
feature(
id = "mst-jvm-codegen",
ref = "src/jvmMain/kotlin/space/kscience/kmath/asm/asm.kt"
) { "Dynamic MST to JVM bytecode compiler" }
feature(
id = "mst-js-codegen",
ref = "src/jsMain/kotlin/space/kscience/kmath/estree/estree.kt"
) { "Dynamic MST to JS compiler" }
feature(
id = "rendering",
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/rendering/MathRenderer.kt"
) { "Extendable MST rendering" }
}