Bug #97683 Modularize the JDBC driver (JPMS)
Submitted: 19 Nov 2019 8:14 Modified: 19 Nov 2019 10:57
Reporter: Per-Ake Minborg Email Updates:
Status: Verified Impact on me:
Category:Connector / J Severity:S4 (Feature request)
Version:5.1, 8.0 OS:Any
Assigned to: CPU Architecture:Any

[19 Nov 2019 8:14] Per-Ake Minborg
Given the current trend of microservices and cloud deployment, the JDBC driver should be able to support the Java Platform Module System (JPMS) allowing small services being deployed with `jlink`, Docker etc.

How to repeat:
run `jlink` with `mysql.connector.java` gives:

Error: automatic module cannot be used with jlink: mysql.connector.java from file:///Users/pemi/.m2/repository/mysql/mysql-connector-java/5.1.48/mysql-connector-java-5.1.48.jar

Same is true for 8.x.x releases

Suggested fix:
Add a `module-info,java` class and use multi-version JAR to support older Java versions while still allowing the module system for Java 9+ apps.
[19 Nov 2019 10:57] MySQL Verification Team
Hello Per-Ake Minborg,

Thank you for the reasonable feature request.

[15 Dec 2020 22:30] Livio Gamboa Tosaca
I have the same problem ┬┐how you fix it?