Skip to content

Commit

Permalink
修改 CI 脚本,开启 Gradle Build Scan (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtn1024 authored Jul 29, 2024
1 parent 0248375 commit 7d73cca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ jobs:
with:
distribution: 'zulu'
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Checkstyle
uses: gradle/gradle-build-action@v3
with:
arguments: checkstyleMain checkstyleTest
run: ./gradlew checkstyleMain checkstyleTest --scan
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: check
run: ./gradlew check --scan
12 changes: 12 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ pluginManagement {
}
}

plugins {
id "com.gradle.develocity" version "3.17.5"
}

rootProject.name = 'muyun'

assert JavaVersion.current() >= JavaVersion.VERSION_21:
Expand All @@ -22,3 +26,11 @@ include 'my-database-standard'
include 'my-database-uni'
//include 'my-msg'
include 'my-boot'

develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
publishing.onlyIf { false }
}
}

0 comments on commit 7d73cca

Please sign in to comment.