Giter Club home page Giter Club logo

commerce-gradle-plugin's Introduction

SAP Commerce Gradle Plugins 4.0.0

Actions Status REUSE status

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

Note
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

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

    plugins {
        id("sap.commerce.build.ccv2") version("4.0.0")
    }
  4. ./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

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

    plugins {
       id("sap.commerce.build") version("4.0.0")
       id("sap.commerce.build.ccv2") version("4.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

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.