In my case it was combination of bad dependency declaration in Gradle (implementation instead of compileOnly) and shadowJar which I believe renames the dependency classes packaged in the jar.