Work-around for strange dependency resolution in notebooks

This commit is contained in:
Alexander Nozik 2023-07-20 08:58:41 +03:00
parent c1f275ce45
commit 5783cf1430
2 changed files with 29 additions and 9 deletions

View File

@ -1,5 +1,16 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"//SessionOptions.resolveMpp = true"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
@ -10,9 +21,9 @@
"@file:Repository(\"https://repo.kotlin.link\")\n",
"@file:Repository(\"https://maven.pkg.jetbrains.space/spc/p/sci/dev\")\n",
"@file:DependsOn(\"space.kscience:visionforge-jupyter-common-jvm:0.3.0-dev-11\")\n",
"@file:DependsOn(\"io.ktor:ktor-server-cio-jvm:2.3.0\")\n",
"@file:DependsOn(\"io.ktor:ktor-server-websockets-jvm:2.3.0\")\n",
"@file:DependsOn(\"io.ktor:ktor-server-cors-jvm:2.3.0\")"
"//@file:DependsOn(\"io.ktor:ktor-server-cio-jvm:2.3.0\")\n",
"//@file:DependsOn(\"io.ktor:ktor-server-websockets-jvm:2.3.0\")\n",
"//@file:DependsOn(\"io.ktor:ktor-server-cors-jvm:2.3.0\")"
]
},
{
@ -26,10 +37,6 @@
},
"outputs": [],
"source": [
"import io.ktor.server.cio.CIO\n",
"\n",
"println(CIO)\n",
"\n",
"vf.startServer()"
]
},
@ -82,7 +89,18 @@
}
},
"outputs": [],
"source": []
"source": [
"vf.stopServer()"
]
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
}
],
"metadata": {

View File

@ -13,7 +13,9 @@ kscience {
api(projects.visionforgeCore)
}
dependencies(jvmMain){
api("io.ktor:ktor-server-cio")
api("io.ktor:ktor-server-cio-jvm")
api("io.ktor:ktor-server-websockets-jvm")
api("io.ktor:ktor-server-cors-jvm")
api(projects.visionforgeServer)
}
}