Update build tools

This commit is contained in:
Alexander Nozik 2023-05-26 11:38:50 +03:00
parent 13d6ea2a16
commit 3e9d28be31
7 changed files with 9 additions and 67 deletions

View File

@ -72,7 +72,7 @@ ksciencePublish {
"https://maven.pkg.jetbrains.space/spc/p/sci/maven" "https://maven.pkg.jetbrains.space/spc/p/sci/maven"
} }
) )
sonatype() sonatype("https://oss.sonatype.org")
} }
apiValidation.nonPublicMarkers.add("space.kscience.kmath.UnstableKMathAPI") apiValidation.nonPublicMarkers.add("space.kscience.kmath.UnstableKMathAPI")

View File

@ -9,7 +9,7 @@ kotlin.native.ignoreDisabledTargets=true
org.gradle.configureondemand=true org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx4096m org.gradle.jvmargs=-Xmx4096m
toolsVersion=0.14.6-kotlin-1.8.20 toolsVersion=0.14.8-kotlin-1.8.20
org.gradle.parallel=true org.gradle.parallel=true

View File

@ -7,23 +7,7 @@ kscience {
js() js()
native() native()
wasm{ wasm()
browser {
testTask {
useKarma {
this.webpackConfig.experiments.add("topLevelAwait")
useChromeHeadless()
useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm"))
}
}
}
}
wasmTest{
dependencies {
implementation(kotlin("test"))
}
}
dependencies { dependencies {
api(projects.kmathCore) api(projects.kmathCore)

View File

@ -6,22 +6,7 @@ kscience{
jvm() jvm()
js() js()
native() native()
wasm{ wasm()
browser {
testTask {
useKarma {
webpackConfig.experiments.add("topLevelAwait")
useChromeHeadless()
}
}
}
}
wasmTest{
dependencies {
implementation(kotlin("test"))
}
}
dependencies { dependencies {
api(projects.kmathMemory) api(projects.kmathMemory)

View File

@ -7,6 +7,7 @@
package space.kscience.kmath.streaming package space.kscience.kmath.streaming
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.asFlow import kotlinx.coroutines.flow.asFlow
@ -25,6 +26,7 @@ public fun <T> Buffer<T>.asFlow(): Flow<T> = iterator().asFlow()
/** /**
* Flat map a [Flow] of [Buffer] into continuous [Flow] of elements * Flat map a [Flow] of [Buffer] into continuous [Flow] of elements
*/ */
@OptIn(ExperimentalCoroutinesApi::class)
public fun <T> Flow<Buffer<T>>.spread(): Flow<T> = flatMapConcat { it.asFlow() } public fun <T> Flow<Buffer<T>>.spread(): Flow<T> = flatMapConcat { it.asFlow() }
/** /**

View File

@ -7,23 +7,9 @@ kscience{
js() js()
native() native()
wasm{ wasm()
browser {
testTask {
useKarma {
this.webpackConfig.experiments.add("topLevelAwait")
useChromeHeadless()
useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm"))
}
}
}
}
wasmTest{
dependencies {
implementation(kotlin("test"))
}
}
dependencies { dependencies {
api(projects.kmathCore) api(projects.kmathCore)

View File

@ -6,22 +6,7 @@ kscience {
jvm() jvm()
js() js()
native() native()
wasm{ wasm()
browser {
testTask {
useKarma {
webpackConfig.experiments.add("topLevelAwait")
useChromeHeadless()
}
}
}
}
wasmTest{
dependencies {
implementation(kotlin("test"))
}
}
} }
readme { readme {