kmath/examples/build.gradle.kts

74 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

2023-03-10 22:50:41 +03:00
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
2019-06-08 16:25:51 +03:00
plugins {
kotlin("jvm")
}
repositories {
2021-04-16 22:43:10 +03:00
mavenCentral()
2021-02-21 16:13:40 +03:00
maven("https://repo.kotlin.link")
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers")
}
2019-06-08 16:25:51 +03:00
dependencies {
2020-10-12 18:42:34 +03:00
implementation(project(":kmath-ast"))
2020-10-13 15:47:07 +03:00
implementation(project(":kmath-kotlingrad"))
2019-06-08 16:25:51 +03:00
implementation(project(":kmath-core"))
implementation(project(":kmath-coroutines"))
implementation(project(":kmath-commons"))
implementation(project(":kmath-complex"))
2022-07-11 17:52:46 +03:00
implementation(project(":kmath-functions"))
2021-08-16 09:55:03 +03:00
implementation(project(":kmath-optimization"))
2020-10-28 09:16:21 +03:00
implementation(project(":kmath-stat"))
2019-12-08 15:48:25 +03:00
implementation(project(":kmath-viktor"))
2019-12-09 19:52:00 +03:00
implementation(project(":kmath-dimensions"))
implementation(project(":kmath-ejml"))
implementation(project(":kmath-nd4j"))
2021-04-26 17:27:50 +03:00
implementation(project(":kmath-tensors"))
implementation(project(":kmath-symja"))
2020-11-29 13:32:20 +03:00
implementation(project(":kmath-for-real"))
2021-10-16 11:10:34 +03:00
//multik
implementation(project(":kmath-multik"))
2024-08-09 10:22:37 +03:00
implementation(libs.multik.default)
2021-10-16 11:10:34 +03:00
2023-03-10 22:50:41 +03:00
//datetime
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
2020-11-29 13:32:20 +03:00
implementation("org.nd4j:nd4j-native:1.0.0-beta7")
// uncomment if your system supports AVX2
// val os = System.getProperty("os.name")
//
// if (System.getProperty("os.arch") in arrayOf("x86_64", "amd64")) when {
// os.startsWith("Windows") -> implementation("org.nd4j:nd4j-native:1.0.0-beta7:windows-x86_64-avx2")
// os == "Linux" -> implementation("org.nd4j:nd4j-native:1.0.0-beta7:linux-x86_64-avx2")
// os == "Mac OS X" -> implementation("org.nd4j:nd4j-native:1.0.0-beta7:macosx-x86_64-avx2")
// } else
implementation("org.nd4j:nd4j-native-platform:1.0.0-beta7")
2021-10-16 11:10:34 +03:00
implementation("org.slf4j:slf4j-simple:1.7.32")
2020-11-29 13:32:20 +03:00
// plotting
2024-02-20 19:35:00 +03:00
implementation("space.kscience:plotlykt-server:0.7.0")
2019-06-08 16:25:51 +03:00
}
2023-03-16 09:37:03 +03:00
kotlin {
2024-10-04 14:55:15 +03:00
jvmToolchain(17)
2023-03-16 09:37:03 +03:00
sourceSets.all {
2023-05-12 20:57:55 +03:00
languageSettings {
2023-03-16 09:37:03 +03:00
optIn("kotlin.contracts.ExperimentalContracts")
optIn("kotlin.ExperimentalUnsignedTypes")
2023-05-12 20:57:55 +03:00
optIn("space.kscience.kmath.UnstableKMathAPI")
2023-03-16 09:37:03 +03:00
}
}
}
2019-06-08 16:25:51 +03:00
2023-03-10 22:50:41 +03:00
tasks.withType<KotlinJvmCompile> {
2024-03-27 09:11:12 +03:00
compilerOptions {
2024-03-27 07:44:53 +03:00
freeCompilerArgs.addAll("-Xjvm-default=all", "-Xopt-in=kotlin.RequiresOptIn", "-Xlambdas=indy")
2021-04-14 23:26:21 +03:00
}
}
2021-01-30 20:12:14 +03:00
2021-03-16 20:56:20 +03:00
readme {
2022-07-29 15:58:02 +03:00
maturity = space.kscience.gradle.Maturity.EXPERIMENTAL
2021-01-30 20:12:14 +03:00
}