kmath/kmath-ast/build.gradle.kts

87 lines
2.1 KiB
Plaintext
Raw Normal View History

plugins {
2021-04-14 12:40:26 +03:00
kotlin("multiplatform")
id("ru.mipt.npm.gradle.common")
}
2020-06-12 10:40:59 +03:00
kotlin.js {
nodejs {
testTask {
useMocha().timeout = "0"
}
}
browser {
testTask {
useMocha().timeout = "0"
}
}
}
2020-06-12 10:40:59 +03:00
kotlin.sourceSets {
filter { it.name.contains("test", true) }
.map(org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet::languageSettings)
.forEach { it.optIn("space.kscience.kmath.misc.UnstableKMathAPI") }
2020-06-12 10:40:59 +03:00
commonMain {
dependencies {
2021-04-20 15:14:59 +03:00
api("com.github.h0tk3y.betterParse:better-parse:0.4.2")
2020-06-12 10:40:59 +03:00
api(project(":kmath-core"))
}
}
commonTest {
dependencies {
implementation(project(":kmath-complex"))
}
}
jsMain {
dependencies {
implementation(npm("astring", "1.7.5"))
implementation(npm("binaryen", "101.0.0"))
implementation(npm("js-base64", "3.6.1"))
}
}
jvmMain {
dependencies {
implementation("org.ow2.asm:asm-commons:9.2")
2020-06-12 16:56:58 +03:00
}
}
}
2020-11-30 11:25:21 +03:00
2021-02-21 16:13:40 +03:00
//Workaround for https://github.com/Kotlin/dokka/issues/1455
2021-02-26 17:50:06 +03:00
tasks.dokkaHtml {
dependsOn(tasks.build)
}
2021-02-21 16:13:40 +03:00
if (System.getProperty("space.kscience.kmath.ast.dump.generated.classes") == "1")
tasks.jvmTest {
2022-06-12 15:16:40 +03:00
jvmArgs("-Dspace.kscience.kmath.ast.dump.generated.classes=1")
}
2020-12-22 13:49:32 +03:00
readme {
maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL
2020-12-22 14:02:02 +03:00
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
feature(
id = "expression-language",
2021-04-20 15:14:59 +03:00
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/parser.kt"
2021-06-15 09:18:40 +03:00
) { "Expression language and its parser" }
2020-12-22 14:02:02 +03:00
feature(
id = "mst-jvm-codegen",
2021-03-16 22:46:22 +03:00
ref = "src/jvmMain/kotlin/space/kscience/kmath/asm/asm.kt"
2021-06-15 09:18:40 +03:00
) { "Dynamic MST to JVM bytecode compiler" }
2020-12-22 14:02:02 +03:00
feature(
id = "mst-js-codegen",
2021-03-16 22:46:22 +03:00
ref = "src/jsMain/kotlin/space/kscience/kmath/estree/estree.kt"
2021-06-15 09:18:40 +03:00
) { "Dynamic MST to JS compiler" }
2021-04-20 15:14:59 +03:00
feature(
id = "rendering",
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/rendering/MathRenderer.kt"
2021-06-15 09:18:40 +03:00
) { "Extendable MST rendering" }
2020-12-22 13:49:32 +03:00
}