Skip to content

Commit e34193a

Browse files
authored
Release 5.0.0
Merge pull request #51 from cxdevtools/develop
2 parents 01831d0 + e84d214 commit e34193a

466 files changed

Lines changed: 11634 additions & 6158 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/backwards-compatibility-java17.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/buildandtest.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
branches: [develop]
66
paths:
77
- "core-customize/manifest.json"
8-
- "core-customize/hybris/bin/custom/sapcxtools/**/*.java"
9-
- "core-customize/hybris/bin/custom/sapcxtools/**/*-beans.xml"
10-
- "core-customize/hybris/bin/custom/sapcxtools/**/*-items.xml"
11-
- "core-customize/hybris/bin/custom/sapcxtools/**/extensioninfo.xml"
12-
- "core-customize/hybris/bin/custom/sapcxtools/**/external-dependencies.xml"
8+
- "core-customize/hybris/bin/custom/cxdevtools/**/*.java"
9+
- "core-customize/hybris/bin/custom/cxdevtools/**/*-beans.xml"
10+
- "core-customize/hybris/bin/custom/cxdevtools/**/*-items.xml"
11+
- "core-customize/hybris/bin/custom/cxdevtools/**/extensioninfo.xml"
12+
- "core-customize/hybris/bin/custom/cxdevtools/**/external-dependencies.xml"
1313
pull_request:
1414
branches: [main, develop]
1515
schedule:
@@ -20,34 +20,34 @@ jobs:
2020
build-and-test:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424
with:
2525
fetch-depth: 0
26-
- name: Set up JDK 17
27-
uses: actions/setup-java@v4
26+
- name: Set up JDK
27+
uses: actions/setup-java@v5
2828
with:
29-
distribution: "adopt"
30-
java-version: "17"
29+
distribution: "sapmachine"
30+
java-version: "21"
3131
cache: "gradle"
3232
- name: Validate Gradle wrapper
33-
uses: gradle/actions/wrapper-validation@v3
33+
uses: gradle/actions/wrapper-validation@v5
3434
- name: Set up cache for SAP artifacts
35-
uses: actions/cache@v4
35+
uses: actions/cache@v5
3636
with:
3737
key: sap-artifacts-cache-${{ hashFiles('core-customize/manifest.json') }}
3838
path: dependencies
3939
- name: SAP download config
4040
env:
41-
SAPCX_ARTEFACT_BASEURL: ${{ secrets.SAPCX_ARTEFACT_BASEURL }}
42-
SAPCX_ARTEFACT_USER: ${{ secrets.SAPCX_ARTEFACT_USER }}
43-
SAPCX_ARTEFACT_PASSWORD: ${{ secrets.SAPCX_ARTEFACT_PASSWORD }}
41+
CXDEV_ARTEFACT_BASEURL: ${{ secrets.CXDEV_ARTEFACT_BASEURL }}
42+
CXDEV_ARTEFACT_USER: ${{ secrets.CXDEV_ARTEFACT_USER }}
43+
CXDEV_ARTEFACT_PASSWORD: ${{ secrets.CXDEV_ARTEFACT_PASSWORD }}
4444
shell: bash
4545
run: |
4646
mkdir -p ${HOME}/.gradle
4747
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
48-
echo "SAPCX_ARTEFACT_BASEURL=${SAPCX_ARTEFACT_BASEURL}" >> ${HOME}/.gradle/gradle.properties
49-
echo "SAPCX_ARTEFACT_USER=${SAPCX_ARTEFACT_USER}" >> ${HOME}/.gradle/gradle.properties
50-
echo "SAPCX_ARTEFACT_PASSWORD=${SAPCX_ARTEFACT_PASSWORD}" >> ${HOME}/.gradle/gradle.properties
48+
echo "CXDEV_ARTEFACT_BASEURL=${CXDEV_ARTEFACT_BASEURL}" >> ${HOME}/.gradle/gradle.properties
49+
echo "CXDEV_ARTEFACT_USER=${CXDEV_ARTEFACT_USER}" >> ${HOME}/.gradle/gradle.properties
50+
echo "CXDEV_ARTEFACT_PASSWORD=${CXDEV_ARTEFACT_PASSWORD}" >> ${HOME}/.gradle/gradle.properties
5151
- name: SAP Commerce environment
5252
run: |
5353
echo "HYBRIS_OPT_CONFIG_DIR=$GITHUB_WORKSPACE/core-customize/hybris/config/local-config" >> $GITHUB_ENV

.github/workflows/code-analysis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
code-analysis:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- name: Set up JDK 17
16-
uses: actions/setup-java@v4
14+
- uses: actions/checkout@v6
15+
- name: Set up JDK
16+
uses: actions/setup-java@v5
1717
with:
18-
distribution: "adopt"
19-
java-version: "17"
18+
distribution: "sapmachine"
19+
java-version: "21"
2020
cache: "gradle"
2121
- name: Validate Gradle wrapper
22-
uses: gradle/actions/wrapper-validation@v3
22+
uses: gradle/actions/wrapper-validation@v5
2323
- name: Verify code conventions
2424
run: ./gradlew spotlessCheck

.github/workflows/dependency-check.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
branches: [develop]
66
paths:
77
- "core-customize/manifest.json"
8-
- "core-customize/hybris/bin/custom/sapcxtools/**/*.java"
9-
- "core-customize/hybris/bin/custom/sapcxtools/**/*-beans.xml"
10-
- "core-customize/hybris/bin/custom/sapcxtools/**/*-items.xml"
11-
- "core-customize/hybris/bin/custom/sapcxtools/**/extensioninfo.xml"
12-
- "core-customize/hybris/bin/custom/sapcxtools/**/external-dependencies.xml"
8+
- "core-customize/hybris/bin/custom/cxdevtools/**/*.java"
9+
- "core-customize/hybris/bin/custom/cxdevtools/**/*-beans.xml"
10+
- "core-customize/hybris/bin/custom/cxdevtools/**/*-items.xml"
11+
- "core-customize/hybris/bin/custom/cxdevtools/**/extensioninfo.xml"
12+
- "core-customize/hybris/bin/custom/cxdevtools/**/external-dependencies.xml"
1313
pull_request:
1414
branches: [main, develop]
1515
workflow_dispatch:
@@ -19,34 +19,34 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
extension: ["sapcommercetoolkit", "sapcxbackoffice", "sapcxreporting", "sapcxsearch", "sapcxenvconfig", "sapcxsinglesignon"]
22+
extension: ["cxdevtoolkit", "cxdevbackoffice", "cxdevreporting", "cxdevenvconfig"]
2323
steps:
24-
- uses: actions/checkout@v4
25-
- name: Set up JDK 17
26-
uses: actions/setup-java@v4
24+
- uses: actions/checkout@v6
25+
- name: Set up JDK
26+
uses: actions/setup-java@v5
2727
with:
28-
distribution: "adopt"
29-
java-version: "17"
28+
distribution: "sapmachine"
29+
java-version: "21"
3030
cache: "gradle"
3131
- name: Validate Gradle wrapper
32-
uses: gradle/actions/wrapper-validation@v3
32+
uses: gradle/actions/wrapper-validation@v5
3333
- name: Set up cache for SAP artifacts
34-
uses: actions/cache@v4
34+
uses: actions/cache@v5
3535
with:
3636
key: sap-artifacts-cache-${{ hashFiles('core-customize/manifest.json') }}
3737
path: dependencies
3838
- name: SAP download config
3939
env:
40-
SAPCX_ARTEFACT_BASEURL: ${{ secrets.SAPCX_ARTEFACT_BASEURL }}
41-
SAPCX_ARTEFACT_USER: ${{ secrets.SAPCX_ARTEFACT_USER }}
42-
SAPCX_ARTEFACT_PASSWORD: ${{ secrets.SAPCX_ARTEFACT_PASSWORD }}
40+
CXDEV_ARTEFACT_BASEURL: ${{ secrets.CXDEV_ARTEFACT_BASEURL }}
41+
CXDEV_ARTEFACT_USER: ${{ secrets.CXDEV_ARTEFACT_USER }}
42+
CXDEV_ARTEFACT_PASSWORD: ${{ secrets.CXDEV_ARTEFACT_PASSWORD }}
4343
shell: bash
4444
run: |
4545
mkdir -p ${HOME}/.gradle
4646
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
47-
echo "SAPCX_ARTEFACT_BASEURL=${SAPCX_ARTEFACT_BASEURL}" >> ${HOME}/.gradle/gradle.properties
48-
echo "SAPCX_ARTEFACT_USER=${SAPCX_ARTEFACT_USER}" >> ${HOME}/.gradle/gradle.properties
49-
echo "SAPCX_ARTEFACT_PASSWORD=${SAPCX_ARTEFACT_PASSWORD}" >> ${HOME}/.gradle/gradle.properties
47+
echo "CXDEV_ARTEFACT_BASEURL=${CXDEV_ARTEFACT_BASEURL}" >> ${HOME}/.gradle/gradle.properties
48+
echo "CXDEV_ARTEFACT_USER=${CXDEV_ARTEFACT_USER}" >> ${HOME}/.gradle/gradle.properties
49+
echo "CXDEV_ARTEFACT_PASSWORD=${CXDEV_ARTEFACT_PASSWORD}" >> ${HOME}/.gradle/gradle.properties
5050
- name: SAP Commerce environment
5151
run: |
5252
echo "HYBRIS_OPT_CONFIG_DIR=$GITHUB_WORKSPACE/core-customize/hybris/config/local-config" >> $GITHUB_ENV

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ core-customize/hybris/roles/
2929
core-customize/hybris/log/
3030
core-customize/hybris/temp/
3131
core-customize/hybris/data/
32-
core-customize/hybris/config/local-config/9[0-9]-local.properties
32+
core-customize/hybris/config/local-config/
3333

34-
# only allow sapcxtools extension
34+
# only allow cxdevtools extension
3535
core-customize/hybris/bin/modules/
3636
core-customize/hybris/bin/platform/
3737

.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17
1+
21.0.9-sapmchn

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.13.0
1+
22.14.0

CONTRIBUTING.md

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
## SAP CX Tools Contributor License Agreement
3+
## CX DEV Tools Contributor License Agreement
44

55
- You will only submit contributions where you have authored 100% of the content.
66
- You will only submit contributions to which you have the necessary rights. This means that if you are employed you
@@ -42,7 +42,7 @@ Please add the following lines to your pull request description:
4242
```markdown
4343
---
4444

45-
I hereby agree to the terms of the SAP CX Tools Contributor License Agreement.
45+
I hereby agree to the terms of the CX DEV Tools Contributor License Agreement.
4646
```
4747

4848
## Coding Conventions
@@ -120,64 +120,3 @@ Use American English spelling rules when writing documentation as well as for co
120120
- `WARN`: potential usage or configuration errors that should not halt execution
121121
- `INFO`: information the users might want to know but not by default
122122
- `DEBUG`: information the developers might want to know to understand execution
123-
124-
## Extensions
125-
126-
All of the extensions have their own repository and are integrated using `git subtree` into this repository or into project. This
127-
procedure was choosen for two major reasons:
128-
129-
1. A centralized repository holding defined releases of the individual extensions and guaranteeing the compatibility with the standard.
130-
1. The individual extension repositories allow a clean integration into projects, i.e. direct integration of the source code.
131-
132-
### How-to use
133-
134-
In order to use an extension from the sapcx.tools you can either download the build artefact from our build pipeline (work in progress) or
135-
integration the extension directly into your repository using git subtree. The following commands shall give you a guidance on how to
136-
integration the extensions into your local repository. Keep in mind, that you need to run these commands from the root of your project.
137-
For the sake of simplicity, we assume that you use the default CCv2 repository layout for your project:
138-
139-
- The following command is used to add an extension "foobar" into your repository:
140-
`git subtree add --squash --message="add extension foobar from SAP CX Tools" --prefix=core-customize/hybris/bin/custom/sapcxtools/foobar git@github.com:sapcxtools/foobar.git main`
141-
- For future updates, please use the following command:
142-
`git subtree pull --squash --message="update extension foobar from SAP CX Tools" --prefix=core-customize/hybris/bin/custom/sapcxtools/foobar git@github.com:sapcxtools/foobar.git main`
143-
- If you want to push changes from the local repository into the extension, please use:
144-
`git subtree push --prefix=core-customize/hybris/bin/custom/sapcxtools/foobar git@github.com:sapcxtools/foobar.git feature/<name-of-your-feature>`
145-
146-
Please note, we typically use `--squash` to reduce the number of commits within your project repository. If you want the whole history
147-
available in your project, feel free to leave out this parameter. Still, we do not recommend this. We also do not recommend to pull other
148-
branches than main. This could lead to conflicts once you want to update back to main.
149-
150-
### Guidelines for the individual extension repositories
151-
152-
Before merging a feature into the `main` branch of an extension, a github workflow sends the feature-branch to the centralized repository.
153-
Let's assume a new feature `feature/my-idea` was pushed via `git subtree push` into extension `foobar`. The workflow checks out the
154-
centralized repository, and creates a branch called `foobar/feature/my-idea`. Then it performs a `git subtree pull` command without
155-
`--squash` and pointing to the feature branch `feature/my-idea` from the `foobar` extension. It pushes the new branch to the centralized
156-
repository.
157-
158-
The centralized repository now also runs a github workflow that automatically creates a pull-request into the `develop` branch for this
159-
feature. With that pull-request, the default workflows from the centralized repository are executed, verifying if everything is fine. In
160-
addition, the repository maintainer will perform custom reviews and may ask you for changes. You can perform your changes within your
161-
project repository and by pushing those to the extension repository `foobar` by updating your feature-branch `feature/my-idea`. This can
162-
be done by running the same `git subtree push` command as before, after you have made your changes in the project repository.
163-
164-
The github workflow will detect your updates and updates the feature-branch on the centralized repository by resetting it to the previous
165-
state, typically develop, and run `git subtree pull` just like the first time. We need to reset the feature-branch `foobar/feature/my-idea`
166-
first, otherwise we would get an additional merge commit for every update of the the feature-branch.
167-
168-
Once the pull-request from feature-branch `foobar/feature/my-idea` was accepted and merged into `develop` the feature-branch `feature-my-idea`
169-
will also be removed from the extensions repository. Another github workflow is triggered that automatically pulls the changes with the
170-
`develop` branch of the centralized repository and updates the `develop` branch of the extensions repository by running:
171-
`git subtree pull --squash --message="merge feature/my-idea into develop" --prefix=core-customize/hybris/bin/custom/sapcxtools/foobar git@github.com:sapcxtools/foobar.git develop`
172-
173-
When the next version of SAP CX tools is released, the same action is done, all included extensions are triggered to also merge their
174-
`develop` branches into their `main` branches, just like the centralized repository. After the release we recommend you to run an update
175-
as mentioned above. Again, we do not recommend to skip the `--squash` option, as you will see all your commits twice in the history.
176-
177-
__CAUTION:__ For those who use this repository itself to develop on features, please make sure that you do not push your changes from the
178-
extensions to the extensions repositories using `git subtree push`. This will be done automatically for you, once your pull-request has
179-
been accepted and merged into `develop`. Also make sure that you only use the pattern `feature/<name>` for your feature-branches, so there
180-
won't be any kind of conflicts with the feature-branches that have automatically been created.
181-
182-
While this process seems to be complicated, it guarantees that all extensions included in SAP CX tools are interoperatable and work
183-
individually, with only their own dependencies resolved. If you have questions, feel free to get in touch with us in the discussion board.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [2023] [SAP CX Tools]
189+
Copyright [2023] [CX DEV Tools]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)