This plugins parses Commerce Cloud v2 manifest.json
file and provides it to the Gradle build script.
If you also use the sap.commerce.build
plugin, it preconfigures various tasks based on manifest.json
The following example shows the full DSL (Domain Specific Language) with all default options and the dependencies the plugin pre-configures.
CCV2 {
//target folder for the `generate*` tasks (details see below)
generatedConfiguration = file('generated-configuration')
//Use this property to access the manifest.json in your Gradle build script
manifest = < parsed manifest.json >
}
If you also use sap.commerce.build
in your build, the hybris.version
is preconfigured with commerceSuiteVersion
of
the manifest.
All artifacts configured as additional extensionPacks
in your manifest.json
will also be unpacked into the root of
your repository during bootstrapPlatform
. This allows you to easily bootstrap e.g. the "Integration
Extension Pack" locally.
See also:
How are extensionPacks
resolved as Maven artifacts?
- If
name
/version
is supplied:
de.hybris.platform:${name}:${version}@zip
- If
artifact
is supplied:
${artifact}
(as is, without any changes)
(Ifartifact
is configured,name
andversion
are ignored, as specified in the docs)
The plugin defines the following tasks
Validate manifest.json
for common issues. If errors are detected, the task fails. Warnings are logged, but do not
cause the task to fail.
You can find all possible errors and warnings in ccv2-validation.md
Only available if the build also uses sap.commerce.build
Runs ant addonistall
for all addons defined in storefrontAddons
of the manifest.
Only available if the build also uses sap.commerce.build
Runs ant alltests
preconfigured with the values of the tests
object of the manifest
Only available if the build also uses sap.commerce.build
Runs ant webtests
preconfigured with the values of the webTests
object of the manifest
Generates *.properties
files (into the folder configured by CCV2.generatedConfiguration
) per aspect and persona as
defined in manifest.json
.
Filename schema: <aspect>_<persona>.properties
.
The aspect common
is used for the properties that are shared between all aspects.
Generates a localextensions.xml
file (into the folder configured by CCV2.generatedConfiguration
) based on
the extensions
list in the manifest.