SAP / commerce-gradle-plugin

Gradle plugins for the full development lifecycle of a SAP Commerce project
Apache License 2.0
33 stars 12 forks source link

Support Cloud Extension Pack #14

Closed mpern closed 5 years ago

mpern commented 5 years ago
cristian-popa commented 5 years ago

So I resolved the CEP automated download by adding this to my build.gradle (for now hardcoded but wanted to prove the concept) . To force the build to prefer CEP extensions over OOTB extensions just add this before HYBRIS_BIN_DIR scan path in localextensions.xml

<path dir='/SAPDevelop/hybris-cloud-extension-pack-1811.05/hybris/bin' autoload='false'/>

configurations {
    cep
}
.....
dependencies {
     cep group: "de.hybris.platform", name:"hybris-cloud-extension-pack", version:"1811.05", ext:'zip'
}

task installCEP(type: Sync) {
    def extractDir = "/SAPDevelop/hybris-cloud-extension-pack-1811.05"
    dependsOn configurations.cep
    from {
        configurations.cep.collect { zipTree(it) }
    }
    into extractDir
}

//call this task in the setupDev section
mpern commented 5 years ago

Check the latest release 😉