Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (68 sloc) 2.32 KB

Adding rdbc-pgsql to your project

rdbc and rdbc-pgsql JARs are published to Maven Central repository. The library is currently available for Scala 2.11 and 2.12 and requires Java 8 runtime. rdbc-pgsql targets {{rdbc_version}} rdbc API version.

SBT

For sbt projects, add the following to build.sbt:

libraryDependencies ++= Vector(
  "io.rdbc" %% "rdbc-api-scala" % "{{rdbc_version}}",
  "io.rdbc.pgsql" %% "pgsql-transport-netty" % "{{version}}"
)

Gradle

For Gradle projects, add the following to the dependencies section of build.gradle:

Scala 2.12

compile group: 'io.rdbc', name: 'rdbc-api-scala_2.12', version: '{{rdbc_version}}'
compile group: 'io.rdbc.pgsql', name: 'pgsql-transport-netty_2.12', version: '{{version}}'

Scala 2.11

compile group: 'io.rdbc', name: 'rdbc-api-scala_2.11', version: '{{rdbc_version}}'
compile group: 'io.rdbc.pgsql', name: 'pgsql-transport-netty_2.11', version: '{{version}}'

Maven

For Maven projects, add the following to the dependencies element of pom.xml:

Scala 2.12

<dependency>
  <groupId>io.rdbc</groupId>
  <artifactId>rdbc-api-scala_2.12</artifactId>
  <version>{{rdbc_version}}</version>
</dependency>
<dependency>
  <groupId>io.rdbc.pgsql</groupId>
  <artifactId>pgsql-transport-netty_2.12</artifactId>
  <version>{{version}}</version>
</dependency>

Scala 2.11

<dependency>
  <groupId>io.rdbc</groupId>
  <artifactId>rdbc-api-scala_2.11</artifactId>
  <version>{{rdbc_version}}</version>
</dependency>
<dependency>
  <groupId>io.rdbc.pgsql</groupId>
  <artifactId>pgsql-transport-netty_2.11</artifactId>
  <version>{{version}}</version>
</dependency>