microsoft / mssql-jdbc

The Microsoft JDBC Driver for SQL Server is a Type 4 JDBC driver that provides database connectivity with SQL Server through the standard JDBC application program interfaces (APIs).
MIT License
1.06k stars 428 forks source link

Add support for a multi-release jar #2402

Open mbbergma opened 7 months ago

mbbergma commented 7 months ago

When upgrading from java8 to Java11+ one has to treat the mssql-jdbc dependency different to other jar dependencies, since as part of the java upgrade you will have to also upgrade the application itself to use the newer jar dependency.

Java supports multi-release jars https://openjdk.org/jeps/238, i.e. jars that contain classes for both java8 and java11+, why can this project not be shipped with a single jar that is backwards compatible with older java versions?

tkyc commented 7 months ago

why can this project not be shipped with a single jar that is backwards compatible with older java versions?

That's not something we've explored yet, but does sound useful to do. I'll bring this up to the team at the next triage. Marking this as a potential enhancement for now.