Licensing Issue of default Database driver mysql-connector-java-8.0.30

Hello, everyone,

I need your help. Currently, Keycloak X is delivered with default database drivers, and it comes with the built-in “keycloak-23.0.1\lib\lib\main\mysql.mysql-connector-java-8.0.30.jar.” Unfortunately, this JAR file has a licensing issue as it is licensed under the GNU GPL. Therefore, unless we use the commercial version and pay for it, we should not include it in our deliveries.

To address this, we have replaced this driver with the MariaDB connector by configuring the driver update properties. However, when we try to remove the “mysql.mysql-connector-java-8.0.30.jar” file, Keycloak startup fails because it is referenced in the bootstrapping process of Quarkus. References to this JAR file are found in the following files:

  • Binary file lib/lib/deployment/appmodel.dat matches
  • Binary file lib/lib/deployment/deployment-class-path.dat matches
  • Binary file lib/quarkus/quarkus-application.dat matches

Can anybody suggest how to completely remove the “mysql.mysql-connector-java-8.0.30.jar” from the Keycloak delivery without causing startup failures?

Your assistance is greatly appreciated.