Maven Coordinates

      +
      How to get the Java Columnar SDK from Maven Central.

      Getting the SDK

      Couchbase publishes all stable artifacts to Maven Central.

      Use your favorite dependency management tool to include the SDK in your project:

      • Maven

      • Gradle (Kotlin)

      • Gradle (Groovy)

      For Maven, add this to the dependencies section of your project’s pom.xml file:

      <dependency>
          <groupId>com.couchbase.client</groupId>
          <artifactId>couchbase-columnar-java-client</artifactId>
          <version>1.0.0</version>
      </dependency>

      Refer to the Maven Documentation for more information regarding the structure of the pom.xml file.

      For a Gradle script written in Kotlin, add this line to the dependencies section of your project’s build.gradle.kts file:

      implementation("com.couchbase.client:couchbase-columnar-java-client:1.0.0")

      For a Gradle script written in Groovy, add this line to the dependencies section of your project’s build.gradle file:

      implementation 'com.couchbase.client:couchbase-columnar-java-client:1.0.0'

      Using a Snapshot Version

      Couchbase publishes pre-release snapshot artifacts to the Sonatype OSS Snapshot Repository. If you wish to use a snapshot version, you’ll need to tell your build tool about this repository.

      • Maven

      • Gradle (Kotlin)

      • Gradle (Groovy)

      pom.xml
      <repositories>
        <repository>
          <id>sonatype-snapshots</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
          <releases><enabled>false</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
      </repositories>
      build.gradle.kts
      repositories {
          mavenCentral()
          maven {
              url = uri("https://oss.sonatype.org/content/repositories/snapshots")
              mavenContent { snapshotsOnly() }
          }
      }
      build.gradle
      repositories {
          mavenCentral()
          maven {
              url "https://oss.sonatype.org/content/repositories/snapshots"
              mavenContent { snapshotsOnly() }
          }
      }
      Couchbase does not provide support for snapshot artifacts. We don’t recommend using them unless you’re working closely with Couchbase Support to verify a particular issue has been resolved prior to release.