• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

SAP/commerce-gradle-plugin: Gradle plugins for the full development lifecycle of ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

SAP/commerce-gradle-plugin

开源软件地址(OpenSource Url):

https://github.com/SAP/commerce-gradle-plugin

开源编程语言(OpenSource Language):

Java 70.9%

开源软件介绍(OpenSource Introduction):

SAP Commerce Gradle Plugins 3.7.1

Actions Status REUSE status

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

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
sap.commerce.ccv1.package Documentation Creates CCv1 compliant deployment packages (Deployment Packaging Guidelines v.2.3.3)

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("3.7.1")
    }
  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("3.7.1")
       id("sap.commerce.build.ccv2") version("3.7.1")
    }
    
    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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
aurmam/gradle-multimodule-app发布时间:2022-06-22
下一篇:
Ingwersaft/wildfly-deploy-gradle-plugin: Gradle Plugin for deploying Files to Wi ...发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap