Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add info about convenience maven project #2407

Merged
merged 4 commits into from Jan 21, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/documentation/head/setup.md
Expand Up @@ -27,7 +27,7 @@ Precompiled versions of the driver can be downloaded from the [PostgreSQL™ JDB
Alternatively you can build the driver from source, but you should only need to
do this if you are making changes to the source code. To build the JDBC driver,
you need gradle and a JDK (currently at least jdk1.8) .

If you have several Java compilers installed, maven will use the first one on the path.
To use a different one set JAVA_HOME to the Java version you wish to use For example,
to use a different JDK than the default, this may work:
Expand All @@ -42,3 +42,6 @@ Where MM is the major version, nn is the minor version and pp is the patch versi
Versions for JDBC3 and lower can be found [here](https://jdbc.postgresql.org/download.html#others)
This is a very brief outline of how to build the driver. Much more detailed information can be
found on the [github repo](https://github.com/pgjdbc/pgjdbc/blob/master/CONTRIBUTING.md)

Even though the JDBC driver should be built with Gradle, for situations, where use of Gradle is not possible, e.g., when building pgjdbc for distributions, the pgjdbc provides a convenience source release artifact **-src.tar.gz** - a Maven based project. The Maven based project contains a minimal version of the JDBC driver with reduced feature and test set and is still validly buildable within the Maven build environment.
zmiklank marked this conversation as resolved.
Show resolved Hide resolved
Minimal version of the JDBC driver is created with **gradlew -d :postgresql:sourceDistribution -Prelease** and then released in the ["Maven central repository"](https://repo1.maven.org/maven2/org/postgresql/postgresql/).