This repository contains the commercetools Composable Commerce and Import API Java SDKs generated from our API reference.
The latest stable SDK release can be retrieved from Maven Central with:
ext {
versions = [
commercetools: "17.16.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}"
}
<properties>
<commercetools.version>17.16.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>
commercetools-http-client
: alias for commercetools-async-http-clientcommercetools-okhttp-client3
: uses OkHttp client 3.0commercetools-okhttp-client4
: uses OkHttp client 4.0commercetools-apachehttp-client
: uses Apache HTTP async client 5.1commercetools-async-http-client
: uses Async HTTP client 2.12commercetools-reactornetty-client
: uses Reactor Netty HTTP Clientcommercetools-javanet-client
: uses HTTP client (java.net.http.HttpClient
) included in JDK 11+commercetools-sdk-java-api
: models and request builders for the product APIcommercetools-sdk-java-importapi
: models and request builders for the import APIcommercetools-sdk-java-history
: models and request builders for the audit log APIcommercetools-sdk-compat-v1
: Compatibility layer for Java v1 SDKcommercetools-money
: Provider for JSR-354 money instancescommercetools-monitoring-newrelic
: Middleware to integrate NewRelic monitoringcommercetools-monitoring-datadog
: Middleware to integrate Datadog monitoringcommercetools-monitoring-opentelemetry
: Middleware to collect metrics using OpenTelemetrycommercetools-graphql-api
: type safe support for the commercetools GraphQL API
To migrate from the 1.x to the 2.x, there is a guideline below: