Skip to content

Commit

Permalink
Update CI/CD build to publish pom files
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed Dec 11, 2023
1 parent cf04d81 commit b767aef
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/continuous-integration-43x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
java-version: '8'
distribution: 'adopt'

- name: Extract project version
run: |
echo PROJECT_VERSION=$(./gradlew properties | grep version | cut -d: -f2 | xargs) >> $GITHUB_ENV
- name: Setup JFrog Cli
uses: jfrog/setup-jfrog-cli@901bb9632db90821c2d3f076012bdeaf66598555 # v3.4.1
env:
Expand All @@ -36,5 +40,10 @@ jobs:
- name: Build the project and Deploy to Artifactory
run: |
jf gradle build install artifactoryPublish
jf gradle build install
cp spring-batch-infrastructure/build/poms/pom-default.xml spring-batch-infrastructure/build/libs/spring-batch-infrastructure-$PROJECT_VERSION.pom
cp spring-batch-core/build/poms/pom-default.xml spring-batch-core/build/libs/spring-batch-core-$PROJECT_VERSION.pom
cp spring-batch-test/build/poms/pom-default.xml spring-batch-test/build/libs/spring-batch-test-$PROJECT_VERSION.pom
cp spring-batch-integration/build/poms/pom-default.xml spring-batch-integration/build/libs/spring-batch-integration-$PROJECT_VERSION.pom
jf gradle artifactoryPublish
jf rt build-publish

0 comments on commit b767aef

Please sign in to comment.