This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new cdb3e6e207 Implemented: Replace SvnCheckout in Gradle (OFBIZ-12868)
(INFRA-25327)
cdb3e6e207 is described below
commit cdb3e6e207e85879aa1744ed1464648bc9252327
Author: Jacques Le Roux <[email protected]>
AuthorDate: Mon Jan 1 11:22:53 2024 +0100
Implemented: Replace SvnCheckout in Gradle (OFBIZ-12868) (INFRA-25327)
The pullAllPluginsSource.script is used in several CI places (GitHub
actions,
BuildBot and Demos)
Lastly I committed the pullAllPluginsSource.sh and pullPluginSource.sh
scripts
with Windows. As Windows has not the x flag, they were not set as
executable.
This fixes it by setting them as executable using "git update-index
--chmod=+x"
This also changes docker-image.yaml and gradle.yaml to use
pullAllPluginsSource
I removed the build in docker-image.yaml as it's not longer needed. Only
pullAllPluginsSource was used and this task does not build anything. It just
pulls the sources
I did not set the the x flag for Windows scripts as it will be useless
anyway
since Windows does not use the x flag
---
.github/workflows/docker-image.yaml | 8 ++++----
.github/workflows/gradle.yaml | 8 +++++---
pullAllPluginsSource.sh | 0
3 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/docker-image.yaml
b/.github/workflows/docker-image.yaml
index eb8d9f1987..cd9c384339 100644
--- a/.github/workflows/docker-image.yaml
+++ b/.github/workflows/docker-image.yaml
@@ -133,10 +133,10 @@ jobs:
java-version: 17
distribution: temurin
cache: 'gradle'
- - name: Grant execute permission for gradlew
- run: chmod +x gradlew
- - name: Build with Gradle
- run: ./gradlew pullAllPluginsSource
+ - name: Grant execute permission for gradlew and pullAllPluginsSource.sh
+ run: chmod +x gradlew pullAllPluginsSource.sh
+ - name: Load all plugins
+ run: ./pullAllPluginsSource.sh
- name: Determine metadata (tags, labels) for Docker framework with
plugins build
id: pluginsmeta
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96
diff --git a/.github/workflows/gradle.yaml b/.github/workflows/gradle.yaml
index 8e8c6ac1cf..6a09998aa4 100644
--- a/.github/workflows/gradle.yaml
+++ b/.github/workflows/gradle.yaml
@@ -41,10 +41,12 @@ jobs:
java-version: 17
distribution: temurin
cache: 'gradle'
- - name: Grant execute permission for gradlew
- run: chmod +x gradlew
+ - name: Grant execute permission for gradlew and pullAllPluginsSource.sh
+ run: chmod +x gradlew pullAllPluginsSource.sh
+ - name: Load all plugins
+ run: ./pullAllPluginsSource.sh
- name: Build with Gradle
- run: ./gradlew pullAllPluginsSource check javadoc
+ run: ./gradlew check javadoc
# Below does not work, see see
https://lists.apache.org/thread/80wzf4kclfk5nh2fss56jd6otf7y4n2f
# BuildBot does it anyway
# - name: Builds with Gradle, checks style and run integration tests (just
to know if they pass)
diff --git a/pullAllPluginsSource.sh b/pullAllPluginsSource.sh
old mode 100644
new mode 100755