Skip to content

module 4

module 4 #9

name: Build Gradle project
on: [push, pull_request]
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup jfrog credentials
env:
JFROG_RO_COMMUNITY_USER: ${{ secrets.JFROG_RO_COMMUNITY_USER }}
JFROG_RO_COMMUNITY_PASSWORD: ${{ secrets.JFROG_RO_COMMUNITY_PASSWORD }}
run: |
echo genesisArtifactoryUser=${JFROG_RO_COMMUNITY_USER} >> ./server/jvm/gradle.properties
echo genesisArtifactoryPassword=${JFROG_RO_COMMUNITY_PASSWORD} >> ./server/jvm/gradle.properties
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Run build with Gradle Wrapper
run: ./gradlew build --info --warning-mode=all --rerun-tasks