How to add a dependency to Maven
Add the following postgresql : postgresql maven dependency to the pom.xml
file with your favorite IDE (IntelliJ / Eclipse / Netbeans):
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901-1.jdbc4</version>
</dependency>
How to add a dependency to Gradle
Gradle Groovy DSL: Add the following postgresql : postgresql gradle dependency to your build.gradle
file:
implementation 'postgresql:postgresql:9.1-901-1.jdbc4'
Gradle Kotlin DSL: Add the following postgresql : postgresql gradle kotlin dependency to your build.gradle.kts
file:
implementation("postgresql:postgresql:9.1-901-1.jdbc4")
How to add a dependency to SBT Scala
SBT Scala: Add the following postgresql : postgresql sbt scala dependency to your build.sbt
file:
libraryDependencies += "postgresql" % "postgresql" % "9.1-901-1.jdbc4"