chore: update Spring Boot version to 3.4.5 in pom.xml (#403) #240
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Make snapshot and deploy | |
on: | |
push: | |
branches: | |
- main | |
- 'release/**' | |
jobs: | |
publish: | |
if: github.repository == 'eclipse-store/store' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java for publishing to Maven Central Snapshot Repository | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'maven' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Make a snapshot | |
run: mvn -Pdeploy -Pproduction --no-transfer-progress --batch-mode clean deploy -U | |
env: | |
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }} | |
MAVEN_GPG_KEY: ${{ secrets.ORG_GPG_PRIVATE_KEY }} | |
#java 17 build | |
publish_java17: | |
if: github.repository == 'eclipse-store/store' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java 17 for publishing to Maven Central Repository | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Build with java 17 | |
run: | | |
mvn -P production -pl integrations/spring-boot3 clean install -am -B | |
mvn -P production -pl integrations/spring-boot3-console clean install -am -B | |
mvn -P production -pl storage/rest/client-app clean install -am -B | |
mvn -P production -pl storage/rest/client-app-standalone-assembly clean install -am -B | |
mvn -P production -pl storage/rest/service-springboot clean install -am -B | |
- name: Deploy module build with java 17 | |
run: | | |
mvn -Pdeploy -Pproduction -pl integrations/spring-boot3 clean deploy | |
mvn -Pdeploy -Pproduction -pl integrations/spring-boot3-console clean deploy | |
mvn -Pdeploy -Pproduction -pl storage/rest/client-app clean deploy | |
mvn -Pdeploy -Pproduction -pl storage/rest/client-app-standalone-assembly clean deploy | |
mvn -Pdeploy -Pproduction -pl storage/rest/service-springboot clean deploy | |
env: | |
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }} | |
MAVEN_GPG_KEY: ${{ secrets.ORG_GPG_PRIVATE_KEY }} |