There is this document:
https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/cassandra/apache-cassandra/#__tabbed_1_2 it's outdated and recommended libraries introduce conflicts and does not work.
When downloading cassandra from offcial webpage: https://cassandra.apache.org/_/download.html
there are mentioned several libraries like shaded drivers, but using these liquibase does not work, as these introduce version conflicts, resulting in liquibase crashes due to missing / conflicting libraries/classes.
Can someone suggest how to make liquibase work with cassandra 5? The problem lies in missing libraries, which are very hard to find, due to their renaming, moving, shaded versions, etc etc.
Let me answer it, if there is another unfortunate soul struggling with this.
If you use cassadra 5, and would like to run liquibase script, using liquibase 4.31.1, you will be missing a lot of jars in lib folder of liquibase. You are instructed to simply provide those, which isn't that straightforward task, due to various renames/moves etc. I didn't find anywhere list of jars needed, so I will provide one below. If your versions are different you can use what I used to find all missing: I used 'spring initializr' project to init maven project adding all cassadra dependencies. This contained several version conflicts which I cleaned, startup DB, setup liquibase config files, and then ran liquibase multiple times, processsing all missing classes using mvn dependency:tree adding one after another, until liquibase finally completed without crashing.
Complete list of needed jars for cassandra 5 and liquibase 4.31.1 follows, every library on this list was actually needed, liquibase crashed without it. So far I used only tagDatabase changeset, maybe more libraries will arise later on, I will try to keep this list updated:
caffeine-3.1.8.jar
cassandra-jdbc-wrapper-4.14.0.jar
config-1.4.1.jar
java-driver-core-shaded-4.19.0.jar
java-driver-guava-shaded-4.19.0.jar
liquibase-cassandra-4.31.1.jar
native-protocol-1.5.1.jar
semver4j-5.4.1.jar