commercetools / commercetools-sdk-java-v2

The e-commerce SDK from commercetools for Java.
https://commercetools.github.io/commercetools-sdk-java-v2/javadoc/index.html
Apache License 2.0
35 stars 16 forks source link
audit-sdk commercetools commercetools-java-sdk commercetools-java-sdks commercetools-scp commercetools-sdk java java-sdk sdk

commercetools Composable Commerce JAVA SDK

Introduction

This repository contains the commercetools Composable Commerce and Import API Java SDKs generated from our API reference.

Installation

Java SDK with Gradle

The latest stable SDK release can be retrieved from Maven Central with:

ext {
    versions = [
        commercetools: "17.19.0"
    ]
}

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    implementation "com.commercetools.sdk:commercetools-http-client:${versions.commercetools}"
    implementation "com.commercetools.sdk:commercetools-sdk-java-api:${versions.commercetools}"
    implementation "com.commercetools.sdk:commercetools-sdk-java-importapi:${versions.commercetools}"
}

Java SDK with Maven

<properties>
    <commercetools.version>17.19.0</commercetools.version>
</properties>
<dependencies>
    <dependency>
      <groupId>com.commercetools.sdk</groupId>
      <artifactId>commercetools-http-client</artifactId>
      <version>${commercetools.version}</version>
    </dependency>
    <dependency>
      <groupId>com.commercetools.sdk</groupId>
      <artifactId>commercetools-sdk-java-api</artifactId>
      <version>${commercetools.version}</version>
    </dependency>
    <dependency>
      <groupId>com.commercetools.sdk</groupId>
      <artifactId>commercetools-sdk-java-importapi</artifactId>
      <version>${commercetools.version}</version>
    </dependency>
</dependencies>

Modules

Migration Guidelines

To migrate from the 1.x to the 2.x, there is a guideline below:

Documentation