MariaDb JDBC Connector 3.1.0 librairie size and dependencies

Hello,

I just try the new JDBC Driver releases 3.1.0 and updated my maven pom from 3.0.8 to 3.1.0. Now my jar file dependencies is much bigger by about 4MB. I'm wondering if all dependencies under waffle-jna can be excluded to get a smaller jar file when not having any windows authentification, NTLM, Kerberos, ... ? Is it safe to do it ? What are the bare minimum requirement for the JDBC Installation / Setup ?

mariadb-java-client-3.1.0.jar waffle-jna-3.2.0.jar jna-5.12.1.jar jna-platform-5.12.1.jar caffeine-2.9.3.jar checker-qual-3.23.0.jar ...

Comments

 
2 years, 4 months ago Thierry Giguere

May I simply add exclusion like this for maven :

<!-- JDBC Driver for MariaDB --> <dependency> <groupId>org.mariadb.jdbc</groupId> <artifactId>mariadb-java-client</artifactId> <version>3.1.0</version> <scope>runtime</scope> <exclusions> <exclusion> <groupId>com.github.waffle</groupId> <artifactId>waffle-jna</artifactId> </exclusion> </exclusions> </dependency>

 
2 years, 4 months ago Diego Dupin

3.1.0 now have waffle as dependencies ( and all sub dependencies). As you supposed, this is only for GSSAPI (Kerberos, NTML, ...)

This dependency can be excluded without issue. (even GSSAPI will work at some simple level)

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.
Back to Top