Skip to content

Commit

Permalink
Merge pull request #12 from nstdio/build-scan
Browse files Browse the repository at this point in the history
chore(ci): Publish Gradle build scans.
  • Loading branch information
nstdio authored Sep 25, 2021
2 parents 8bc0b66 + cc11af9 commit 36a1d68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build
run: ./gradlew build --stacktrace --no-daemon
run: ./gradlew build --stacktrace --no-daemon --scan
- name: Analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,10 @@ tasks.register('addLicenseHeaders') {
wrapper {
gradleVersion = '7.2'
}

if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}

0 comments on commit 36a1d68

Please sign in to comment.