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` `maven-publish`
} }
version = "0.1.0" version = rootProject.extra.get("attributesVersion").toString()
kscience { kscience {
jvm() jvm()

View File

@ -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")

View File

@ -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")
} }
} }

View File

@ -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)
} }