MCPcopy Index your code
hub / github.com/SAP/commerce-gradle-plugin

github.com/SAP/commerce-gradle-plugin @v6.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v6.0.0 ↗ · + Follow
159 symbols 353 edges 52 files 4 documented · 3% updated todayv6.0.0 · 2026-06-25★ 381 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SAP Commerce Gradle Plugins 6.0.0

Actions Status REUSE status

Bootstrap, configure and build your SAP Commerce (Hybris) project using Gradle 5+.

[!TIP] For the user documentation, please check the /docs folder

The plugins are published to https://plugins.gradle.org/.

Published Plugin Documentation Description
sap.commerce.build Documentation Automates the developer setup and allows you to interact with the platform build using Gradle
sap.commerce.build.ccv2 Documentation Use manifest.json to configure and build your "SAP Commerce Cloud in the Public Cloud" (aka CCv2) project locally

This project uses Semantic Versioning 2.0.0

Getting Started

Here is how you get started with the plugins for your SAP Commerce project.

Prerequisites

Install Gradle, in case you haven't yet.

Examples

Minimal Setup for CCv2 Manifest Validation

  1. cd <project>/core-customize
  2. (optional, but highly recommended) Initialize the Gradle Wrapper

shell gradle wrapper 3. Add a minimal Gradle build script:\ build.gradle.kts

```kotlin
plugins {
    id("sap.commerce.build.ccv2") version("6.0.0")
}
```
  1. ./gradlew validateManifest

Development Setup

For a fully automated, best-practice CCv2 project setup, refer to sap-commerce-tools/ccv2-project-template

  1. cd <project>/core-customize
  2. (optional, but highly recommended) Initialize the Gradle Wrapper

shell gradle wrapper 3. Add Gradle build script \ build.gradle.kts

```kotlin plugins { id("sap.commerce.build") version("6.0.0") id("sap.commerce.build.ccv2") version("6.0.0") }

repositories { //Please refer to the official Gradle documentation and the plugin documentation for additional // information about dependency resolution.

 // Option 1: Use a (custom) Maven repository to provide SAP Commerce artifacts for development
 maven {
    url = uri("https://custom.repo.com/maven")
 }
 // Option 2: Download all required files manually and put them in `dependencies` folder
 // There are ways to automate the downloads from launchpad.support.sap.com, please check the FAQ.
 // Make sure to rename the files accordingly (<artifactId>-<version>.zip)
 flatDir { dirs("dependencies") }

 mavenCentral()

} ``` 4. Enjoy things like:

  • ./gradlew bootstrapPlatform - download (if you use Maven) and set up the correct SAP Commerce zip, extension packs, cloud extension packs, ..., as defined in manifest.json
  • ./gradlew installManifestAddons - install all addons as defined in manifest.json
  • ./gradlew yclean yall - run ant clean all using Gradle. You can run any Ant target provided by SAP Commerce as y<target>.
  • ./gradlew validateManifest- validate your manifest for common errors. Now with additional checks because the full platform is available.
  • ./gradlew cloudTests cloudWebTests- run the tests defined in manifest.json

Don't forget to commit the Gradle Wrapper and your build script.

Support

Please raise an issue in this GitHub project, following the guidelines outlined in CONTRIBUTING.md

Contributing

Please refer to CONTRIBUTING.md

Extension points exported contracts — how you extend this code

ExtensionsResolver (Interface)
Resolves information about extensions declared in the build manifest. [4 implementers]
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/ExtensionsResolver.java
Validator (Interface)
(no doc) [18 implementers]
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/Validator.java

Core symbols most depended-on inside this repo

setLocation
called by 32
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/Error.java
setMessage
called by 32
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/Error.java
setCode
called by 32
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/Error.java
createError
called by 32
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/Error.java
toEmpty
called by 13
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/model/util/ParseUtils.java
emptyOrSet
called by 6
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/model/util/ParseUtils.java
validateAndNormalizePath
called by 6
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/ValidationUtils.java
setLevel
called by 5
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/Error.java

Shape

Method 117
Class 39
Interface 2
Enum 1

Languages

Java100%

Modules by API surface

cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/Error.java13 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/CloudV2Plugin.java11 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/model/util/ParseUtils.java8 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/ExtensionsResolver.java7 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/tasks/ValidateManifest.java7 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/model/Manifest.java7 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/impl/UseConfigValidator.java6 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/tasks/PatchLocalExtensions.java6 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/ExtensionValidator.java5 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/model/ExtensionPack.java5 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/impl/WebrootValidator.java4 symbols
cloud-plugin/src/main/java/mpern/sap/commerce/ccv2/validation/impl/ManifestExtensionsResolver.java4 symbols

For agents

$ claude mcp add commerce-gradle-plugin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact