Fix ktor imports

This commit is contained in:
Alexander Nozik 2022-01-18 17:37:25 +03:00
parent 0c4c2e4cc0
commit 786e1637b4
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
9 changed files with 29 additions and 13 deletions

1
.space/CODEOWNERS Normal file
View File

@ -0,0 +1 @@
./space/* "Project Admin"

View File

@ -17,7 +17,7 @@ kotlin {
commonMain{ commonMain{
dependencies { dependencies {
api("space.kscience:dataforge-io:$dataforgeVersion") api("space.kscience:dataforge-io:$dataforgeVersion")
api(npm.kotlinx.datetime) api(npmlibs.kotlinx.datetime)
} }
} }
} }

View File

@ -4,14 +4,12 @@ plugins {
} }
val dataforgeVersion: String by rootProject.extra val dataforgeVersion: String by rootProject.extra
val kotlinx_io_version = "0.1.1"
kotlin { kotlin {
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
implementation(projects.controlsCore) implementation(projects.controlsCore)
implementation("org.jetbrains.kotlinx:kotlinx-io:$kotlinx_io_version")
} }
} }
@ -20,7 +18,6 @@ kotlin {
implementation(projects.magix.magixApi) implementation(projects.magix.magixApi)
implementation(projects.controlsMagixClient) implementation(projects.controlsMagixClient)
implementation(projects.magix.magixServer) implementation(projects.magix.magixServer)
implementation("org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinx_io_version")
} }
} }
} }

View File

@ -1,6 +1,6 @@
package ru.mipt.npm.controls.storage.asynchronous package ru.mipt.npm.controls.storage.asynchronous
import kotlinx.io.core.Closeable import io.ktor.utils.io.core.Closeable
import kotlinx.serialization.KSerializer import kotlinx.serialization.KSerializer
import kotlinx.serialization.serializer import kotlinx.serialization.serializer
import ru.mipt.npm.controls.api.PropertyChangedMessage import ru.mipt.npm.controls.api.PropertyChangedMessage

View File

@ -1,11 +1,11 @@
package ru.mipt.npm.controls.storage.asynchronous package ru.mipt.npm.controls.storage.asynchronous
import io.ktor.utils.io.core.use
import kotlinx.coroutines.InternalCoroutinesApi import kotlinx.coroutines.InternalCoroutinesApi
import kotlinx.coroutines.Job import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.filter import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.onEach
import kotlinx.io.core.use
import ru.mipt.npm.controls.api.DeviceMessage import ru.mipt.npm.controls.api.DeviceMessage
import ru.mipt.npm.controls.api.PropertyChangedMessage import ru.mipt.npm.controls.api.PropertyChangedMessage
import ru.mipt.npm.controls.controllers.DeviceManager import ru.mipt.npm.controls.controllers.DeviceManager

View File

@ -1,6 +1,6 @@
package ru.mipt.npm.controls.storage.synchronous package ru.mipt.npm.controls.storage.synchronous
import kotlinx.io.core.Closeable import io.ktor.utils.io.core.Closeable
import kotlinx.serialization.KSerializer import kotlinx.serialization.KSerializer
import kotlinx.serialization.serializer import kotlinx.serialization.serializer
import ru.mipt.npm.controls.api.PropertyChangedMessage import ru.mipt.npm.controls.api.PropertyChangedMessage

View File

@ -1,9 +1,11 @@
package ru.mipt.npm.controls.storage.synchronous package ru.mipt.npm.controls.storage.synchronous
import io.ktor.utils.io.core.use
import kotlinx.coroutines.InternalCoroutinesApi import kotlinx.coroutines.InternalCoroutinesApi
import kotlinx.coroutines.Job import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.* import kotlinx.coroutines.flow.filter
import kotlinx.io.core.use import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import ru.mipt.npm.controls.api.DeviceMessage import ru.mipt.npm.controls.api.DeviceMessage
import ru.mipt.npm.controls.api.PropertyChangedMessage import ru.mipt.npm.controls.api.PropertyChangedMessage
import ru.mipt.npm.controls.controllers.DeviceManager import ru.mipt.npm.controls.controllers.DeviceManager

12
gradle.properties Normal file
View File

@ -0,0 +1,12 @@
kotlin.code.style=official
kotlin.mpp.stability.nowarn=true
kotlin.jupyter.add.scanner=false
org.gradle.jvmargs=-XX:MaxMetaspaceSize=1G
org.gradle.parallel=true
publishing.github=false
publishing.sonatype=false
toolsVersion=0.10.9-kotlin-1.6.10

View File

@ -1,13 +1,13 @@
rootProject.name = "controls-kt" rootProject.name = "controls-kt"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("VERSION_CATALOGS") enableFeaturePreview("VERSION_CATALOGS")
pluginManagement { pluginManagement {
val toolsVersion = "0.10.5" val toolsVersion: String by extra
repositories { repositories {
mavenLocal()
maven("https://repo.kotlin.link") maven("https://repo.kotlin.link")
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
@ -22,14 +22,18 @@ pluginManagement {
} }
dependencyResolutionManagement { dependencyResolutionManagement {
val toolsVersion: String by extra
repositories { repositories {
mavenLocal()
maven("https://repo.kotlin.link") maven("https://repo.kotlin.link")
mavenCentral() mavenCentral()
} }
versionCatalogs { versionCatalogs {
create("npm") { create("npmlibs") {
from("ru.mipt.npm:version-catalog:0.10.5") from("ru.mipt.npm:version-catalog:$toolsVersion")
} }
} }
} }