forked from kscience/kmath
Adjust build
This commit is contained in:
parent
efef5996e1
commit
a67bda8a33
@ -3,7 +3,7 @@ plugins {
|
|||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "0.1.0"
|
version = rootProject.extra.get("attributesVersion").toString()
|
||||||
|
|
||||||
kscience {
|
kscience {
|
||||||
jvm()
|
jvm()
|
||||||
|
@ -6,6 +6,8 @@ plugins {
|
|||||||
id("org.jetbrains.kotlinx.kover") version "0.7.6"
|
id("org.jetbrains.kotlinx.kover") version "0.7.6"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val attributesVersion by extra("0.1.0")
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://repo.kotlin.link")
|
maven("https://repo.kotlin.link")
|
||||||
|
@ -67,8 +67,8 @@ kotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinJvmCompile> {
|
tasks.withType<KotlinJvmCompile> {
|
||||||
kotlinOptions {
|
compilerOptions{
|
||||||
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all" + "-Xopt-in=kotlin.RequiresOptIn" + "-Xlambdas=indy"
|
freeCompilerArgs.addAll("-Xjvm-default=all", "-Xopt-in=kotlin.RequiresOptIn", "-Xlambdas=indy")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ public suspend fun XYColumnarData<Double, Double, Double>.fitWith(
|
|||||||
this,
|
this,
|
||||||
modelExpression,
|
modelExpression,
|
||||||
attributes.modify<XYFit> {
|
attributes.modify<XYFit> {
|
||||||
set(::OptimizationStartPoint, startingPoint)
|
set(OptimizationStartPoint(), startingPoint)
|
||||||
if (!hasAny<OptimizationLog>()) {
|
if (!hasAny<OptimizationLog>()) {
|
||||||
set(OptimizationLog, Loggable.console)
|
set(OptimizationLog, Loggable.console)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user