Skip to content

Commit

Permalink
Add Gradle user name to properties and configure in separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Feb 27, 2024
1 parent c4ec76e commit b80ac3c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Windows Build
on:
push:
branches:
- 3.1.x
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
Expand All @@ -26,6 +23,12 @@ jobs:
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
with:
cache-read-only: false
- name: Configure Gradle properties
shell: bash
run: |
echo 'systemProp.user.name=spring-builds+github' >> $GRADLE_USER_HOME/gradle.properties
echo 'systemProp.org.gradle.internal.launcher.welcomeMessageEnabled=false' >> $GRADLE_USER_HOME/gradle.properties
echo 'org.gradle.daemon=true' >> $GRADLE_USER_HOME/gradle.properties
- name: Stop Docker service
run: Stop-Service -name Docker
- name: Build
Expand All @@ -35,4 +38,4 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
run: ./gradlew '-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false' --no-daemon build
run: ./gradlew build

0 comments on commit b80ac3c

Please sign in to comment.