Skip to content

commercetools/commercetools-sdk-java-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • commercetools-http-client: alias for commercetools-async-http-client
  • commercetools-okhttp-client3: uses OkHttp client 3.0
  • commercetools-okhttp-client4: uses OkHttp client 4.0
  • commercetools-apachehttp-client: uses Apache HTTP async client 5.1
  • commercetools-async-http-client: uses Async HTTP client 2.12
  • commercetools-reactornetty-client: uses Reactor Netty HTTP Client
  • commercetools-javanet-client: uses HTTP client (java.net.http.HttpClient) included in JDK 11+
  • commercetools-sdk-java-api: models and request builders for the product API
  • commercetools-sdk-java-importapi: models and request builders for the import API
  • commercetools-sdk-java-history: models and request builders for the audit log API
  • commercetools-sdk-compat-v1: Compatibility layer for Java v1 SDK
  • commercetools-money: Provider for JSR-354 money instances
  • commercetools-monitoring-newrelic: Middleware to integrate NewRelic monitoring
  • commercetools-monitoring-datadog: Middleware to integrate Datadog monitoring
  • commercetools-monitoring-opentelemetry: Middleware to collect metrics using OpenTelemetry
  • commercetools-graphql-api: type safe support for the commercetools GraphQL API

Migration Guidelines

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

Documentation