Adjust build

This commit is contained in:
Alexander Nozik 2024-03-27 07:44:53 +03:00
parent efef5996e1
commit a67bda8a33
4 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,7 @@ plugins {
`maven-publish`
}
version = "0.1.0"
version = rootProject.extra.get("attributesVersion").toString()
kscience {
jvm()

View File

@ -6,6 +6,8 @@ plugins {
id("org.jetbrains.kotlinx.kover") version "0.7.6"
}
val attributesVersion by extra("0.1.0")
allprojects {
repositories {
maven("https://repo.kotlin.link")

View File

@ -67,8 +67,8 @@ kotlin {
}
tasks.withType<KotlinJvmCompile> {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all" + "-Xopt-in=kotlin.RequiresOptIn" + "-Xlambdas=indy"
compilerOptions{
freeCompilerArgs.addAll("-Xjvm-default=all", "-Xopt-in=kotlin.RequiresOptIn", "-Xlambdas=indy")
}
}

View File

@ -124,7 +124,7 @@ public suspend fun XYColumnarData<Double, Double, Double>.fitWith(
this,
modelExpression,
attributes.modify<XYFit> {
set(::OptimizationStartPoint, startingPoint)
set(OptimizationStartPoint(), startingPoint)
if (!hasAny<OptimizationLog>()) {
set(OptimizationLog, Loggable.console)
}