Giter Site home page Giter Site logo

sap-commerce-tools / supportportal-example Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 633 KB

How to use the gradle plugins and how to auto-download the platform artifacts from the SAP Support Portal

Java 98.28% CSS 1.72%
hybris hybris-commerce-suite sap-hybris hybris-commerce example-project gradle-plugin sap commerce sap-support-portal commerce-cloud

supportportal-example's Introduction

Archived on 2020-02-16
I recently switched jobs away from SAP Commerce development

Demo Project for hybris gradle plugins

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

Setup local environment

  1. clone the repository
  2. cp gradle.properties.template gradle.properties
  3. adapt gradle.properties as described in the file
  4. ./gradlew setupDev
  5. 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

Interesting things

  • All SupportPortalDownload tasks execute before bootstrapPlatform. (This is enforced by the plugin)
  • SupportPortalDownload caches metadata for every downloaded file to speed up subsequent builds
  • the hcs-configuration folder does not contain folders for every environment, but the final package still does. This is because the common folder is the base for every environment config
  • also check out how the various *.properties files are merged (check the results in temp/gradle-build-demo_v1.0.0-SNAPSHOT)
  • the datahub war file has the valid file name in the package

supportportal-example's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.