<@UQ8NE6A86> there is something weird going on wit...
# datascience
f
@Ilya Muradyan there is something weird going on with the maven package for the kernel that I managed to reduce to a simple PoC: I have one class that simply tries to embed the kernel:
Copy code
import org.jetbrains.kotlinx.jupyter.IkotlinKt;
import java.io.*;


public class BugDemo {

    public static void main(String[] args) {
        IkotlinKt.embedKernel(
                new File(args[1]),
                null,
                null);
    }
}
a default gradle file as generated by IntelliJ for a new project that specifies the maven package as a dependency
Copy code
plugins {
    id 'java'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    jcenter()
    mavenCentral()
}

dependencies {
    implementation 'org.jetbrains.kotlinx:kotlin-jupyter-kernel:0.8.3.281'
}
Building then fails with:
Copy code
gradle classes

> Task :compileJava FAILED
error: org.jetbrains.kotlinx.jupyter.libraries.ResolutionInfoProvider: class file for org.jetbrains.kotlinx.jupyter.libraries.ResolutionInfoProvider not found
/home/fmagin/gits/jupyter-gradle-test/src/main/java/BugDemo.java:5: error: cannot access ResolutionInfoProvider
public class BugDemo {
       ^
  class file for org.jetbrains.kotlinx.jupyter.libraries.ResolutionInfoProvider not found
1 error

FAILURE: Build failed with an exception.
I have no idea if this is a bug or if I am doing something wrong.
i
Does adding
implementation 'org.jetbrains.kotlinx:kotlin-jupyter-shared-compiler:0.8.3.281'
to build.gradle fix the problem?
f
yes it does!
i
Well, I'll add shared-compiler as compile dependency for kernel artifact (it was runtime before)
Thanks for reporting
f
No problem. I was chasing this down for hours and was thinking this was some weird caching or dependency issue with my setup
What confuses me is that I already managed to setup automated CI builds for a project that uses the kernel and that worked.
but that involved copying libraries around to accommodate the weird build process of Ghidra Plugins, so this might have been why it worked
anyway, thanks for the quick response and fix!