diff --git a/docs/src/main/sphinx/client/jdbc.md b/docs/src/main/sphinx/client/jdbc.md index c21cf6ee34ef..7b3120ed393f 100644 --- a/docs/src/main/sphinx/client/jdbc.md +++ b/docs/src/main/sphinx/client/jdbc.md @@ -21,7 +21,11 @@ Versions before 350 are not supported. Download {maven_download}`jdbc` and add it to the classpath of your Java application. -The driver is also available from Maven Central: +The driver is available from Maven Central as a fat JAR archive that contains +all classes. The archives includes the Trino JDBC driver classes, as well as any +necessary third-party classes from transitive dependencies as shaded classes. +This JAR archive is suitable for any usage without managing these transitive +dependencies. ```xml @@ -31,6 +35,19 @@ The driver is also available from Maven Central: ``` +Alternatively, use the non-shaded version in your application development as +dependency and pull in transitive dependencies with your build tool. This also +allows you to control the versions of these dependencies: + +```xml + + io.trino + trino-jdbc + |trino_version| + non-shaded + +``` + We recommend using the latest version of the JDBC driver. A list of all available versions can be found in the [Maven Central Repository](https://repo1.maven.org/maven2/io/trino/trino-jdbc/). Navigate to the directory for the desired version, and select the `trino-jdbc-xxx.jar` file