Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datastax java driver 4.5 tinkerpop dependecies

Datastax java driver 4.5 has a lot of dependencies. Is tinkerpop required to use Datastax java driver to connect to a cassandra database ?

like image 950
Adrian I Avatar asked Dec 07 '25 07:12

Adrian I


1 Answers

Tinkerpop dependency is required only when you're working with DataStax Graph. As documentation states, you can exclude it:

The driver has a non-optional dependency on that library, but if your application does not use graph at all, it is possible to exclude it to minimize the number of runtime dependencies (see the Integration>Driver dependencies section for more details).

and linked documentation shows driver declaration as:

<dependency>
  <groupId>com.datastax.oss</groupId>
  <artifactId>java-driver-core</artifactId>
  <version>${driver.version}</version>
  <exclusions>
    <exclusion>
      <groupId>org.apache.tinkerpop</groupId>
      <artifactId>gremlin-core</artifactId>
    </exclusion>
    <exclusion>
      <groupId>org.apache.tinkerpop</groupId>
      <artifactId>tinkergraph-gremlin</artifactId>
    </exclusion>
  </exclusions>
</dependency>
like image 65
Alex Ott Avatar answered Dec 09 '25 18:12

Alex Ott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!