Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion docs/src/main/sphinx/client/jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<dependency>
Expand All @@ -31,6 +35,19 @@ The driver is also available from Maven Central:
</dependency>
```

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
<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-jdbc</artifactId>
<version>|trino_version|</version>
<classifier>non-shaded</version>
</dependency>
```

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
Expand Down