Kotlin / kotlin-jupyter

Kotlin kernel for Jupyter/IPython
Apache License 2.0
1.09k stars 106 forks source link

maven central missing transitive dependencies ? #438

Open maxandersen opened 7 months ago

maxandersen commented 7 months ago

im trying to run the kotlin kernel using jbang but are finding the jars published in maven central has incomplete dependencies.

using specific version:

jbang info tools org.jetbrains.kotlinx:kotlin-jupyter-kernel:1.9.20 
[jbang] Resolving dependencies...
[jbang]    org.jetbrains.kotlinx:kotlin-jupyter-kernel:1.9.20
[jbang] [ERROR] Could not resolve dependencies: Could not find artifact org.jetbrains.kotlinx:kotlin-jupyter-kernel:jar:1.9.20 in central (https://repo1.maven.org/maven2/)

using RELEASE:

jbang info tools org.jetbrains.kotlinx:kotlin-jupyter-kernel:RELEASE
[jbang] Resolving dependencies...
[jbang]    org.jetbrains.kotlinx:kotlin-jupyter-kernel:RELEASE
[jbang] [ERROR] Could not resolve dependencies: Could not find artifact org.jetbrains.kotlin:kotlin-scripting-dependencies-maven-all:jar:1.9.30-dev-3705 in central (https://repo1.maven.org/maven2/)

and yes, those dependencies are not published with those versions.

Seems like the pom.xml are not correct/consistent.

I can use org.jetbrains.kotlinx:kotlin-jupyter-kernel-shadowed:0.12.0-85 but would prefer being able to reuse already download dependencies rather than big jar fetch.

Is this expected? any recommended ways to depend on the maven artifacts?

ileasile commented 7 months ago

Hi! You can use this artifact with the 0.12.0-85 version or any other published version. Kotlin kernel isn't a part of a Kotlin distribution, so that's expected that version 1.9.20 of it isn't available, we indeed didn't publish such a version.

Current latest version in maven central however relies on the dev version of Kotlin that's not published there. Latest version of kernel that relies only on stable Kotlin artifacts is 0.12.0-82-1.