Archived on 2020-02-16
I recently switched jobs away from SAP Commerce development
This project shows some usage examples for the SAP (Hybris) Commerce build plugin. It especially shows how to automatically download the distribution files from the SAP Support Portal
Check the comments in build.gradle for explanations and details.
For details about the used plugins check the commerce-gradle-plugin wiki
- clone the repository
cp gradle.properties.template gradle.properties- adapt
gradle.propertiesas described in the file ./gradlew setupDev- Done!
Note: use gradlew to execute the task to ensure the correct gradle version
Disclaimer: the final package will NOT pass the ypackagevalidator, because the datahub war file is just a dummy file.
If you want a valid package, set hcs.datahub = false
- All
SupportPortalDownloadtasks execute beforebootstrapPlatform. (This is enforced by the plugin) SupportPortalDownloadcaches metadata for every downloaded file to speed up subsequent builds- the
hcs-configurationfolder does not contain folders for every environment, but the final package still does. This is because thecommonfolder is the base for every environment config - also check out how the various
*.propertiesfiles are merged (check the results intemp/gradle-build-demo_v1.0.0-SNAPSHOT) - the datahub war file has the valid file name in the package