Ilya Muradyan
08/24/2022, 7:59 PM@file:DependsOn
and @file:Repository
). We'd like to make it similar to Gradle dependencies declaration, now it looks like this:
USE {
gradle {
repositories {
mavenCentral()
}
dependencies {
implementation("io.github.config4k:config4k:0.4.2")
}
}
}
I'd like to ask, what do you think of API entry point name? Now it's gradle
. There are other options mentioned here: https://github.com/Kotlin/kotlin-jupyter/pull/382#issuecomment-1220831897
Also, dependsOn
is suggested by @altavir, and I really like it.
Your suggestions are welcome!kenkyee
08/24/2022, 8:04 PMUSE {
dependencies { "io.github.config4k:config4k:0.4.2"
}
}
default to including mavenCentral() and mavenLocal() and only require the repositories if needed…add any others that are common.
You’ll always use implementation dependencies in Jupyter notebooks AFAIK.
Also, why do you need USE{} ?Ilya Muradyan
08/24/2022, 9:03 PMUSE
is needed inside a notebook to add a library - I want this API be available both in notebook and integrations, and USE is used to enter library APIrepositories
and dependencies
in the same scope, but they have vararg string arguments, so signatures do not intersectaltavir
08/25/2022, 5:42 AMCarter
09/05/2022, 11:45 AMIlya Muradyan
09/05/2022, 12:00 PM@file:Repository("<URL>", "<username>", "<password>")
@file:DependsOn("group:artifact:version")
We can add it to the new API eitherCarter
09/05/2022, 12:00 PM@file:Repository("<https://maven.pkg.github.com/my-org/my-repo>", "my-username", "my-token")
@file:DependsOn("my-package:my-artifact:0.0.1-SNAPSHOT")
When I run it the error that comes back is:
Failed to resolve my-package:my-artifact:0.0.1-SNAPSHOT:
File 'my-package:my-artifact:0.0.1-SNAPSHOT' not found
ArtifactResolutionException: Could not find artifact my-package:my-artifact:jar:0.0.1-SNAPSHOT in https___repo.maven.apache.org_maven2_ (<https://repo.maven.apache.org/maven2/>)
I notice the error doesn’t indicate it is searching my newly declared repository. Am I missing something?Ilya Muradyan
10/04/2022, 12:25 PMWhat ismy-package:my-artifact:sdk:jar:0.0.1-SNAPSHOT
sdk
here? Have you specified some additional classifier for your dependency? Problem could be caused by wrong artifact coordinates, but I can't checkCarter
10/04/2022, 12:36 PMsdk
was a typo in my example. It isn’t an additional classifier.Ilya Muradyan
10/04/2022, 12:50 PMpip install -i <https://test.pypi.org/simple/> kotlin-jupyter-kernel==0.11.0.168
Carter
10/04/2022, 12:51 PMkotlin-jupyter-ke~ jetbrains::kotlin-jupyter-kernel-0.11~ --> jetbrains-dev::kotlin-jupyter-kernel-0.11.0.168-py_0