If such a dependency exists outside of jupyter kotlin notebooks, then you can create a JSON file to describe the dependency so that you can import it.
Example of how I imported uuid, datetime, and immutable collections
{
"description": "My Dependencies",
"properties": {
"uuidVersion": "0.2.3",
"kotlinxImmutableCollectionsVersion": "0.3.3",
"kotlinxDateTimeVersion": "0.1.1"
},
"repositories": [
"<https://kotlin.bintray.com/kotlin-datascience>",
"<https://kotlin.bintray.com/kotlinx>"
],
"dependencies": [
"org.jetbrains.kotlinx:kotlinx-collections-immutable:$kotlinxImmutableCollectionsVersion",
"com.benasher44:uuid:$uuidVersion",
"org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion"
]
}
%use my-dependencies@file[/data/workspace_files/my-dependencies.json]