Skip to content

Commit af23fd1

Browse files
author
ntwigg
committed
In settings.gradle, add apply from: 干.file('base/buildscan-on-ci.gradle') and you'll get buildscans in CI.
1 parent 3787ce2 commit af23fd1

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979

8080
# Changelog
8181
## [Unreleased]
82+
### Added
83+
- In `settings.gradle`, add `apply from: 干.file('base/buildscan-on-ci.gradle')` and you'll get buildscans in CI.
8284

8385
## [9.0.5] - 2025-07-29
8486
### Fixed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def isCI = providers.environmentVariable('CI').present
2+
develocity {
3+
buildScan {
4+
termsOfUseUrl = "https://gradle.com/terms-of-service"
5+
termsOfUseAgree = "yes"
6+
publishing {
7+
onlyIf { isCI }
8+
}
9+
}
10+
}

src/main/resources/plugin.versions

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
// https://github.com/diffplug/blowdryer/blob/main/CHANGELOG.md
22
id 'com.diffplug.blowdryerSetup' version '1.7.1'
33
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
4-
id 'com.diffplug.spotless' version '7.0.4' apply false
4+
id 'com.diffplug.spotless' version '7.2.1' apply false
55
// https://github.com/diffplug/spotless-changelog/blob/main/CHANGELOG.md
66
id 'com.diffplug.spotless-changelog' version '3.1.2' apply false
77
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
88
id 'com.gradle.plugin-publish' version '1.3.1' apply false
9+
// https://plugins.gradle.org/plugin/com.gradle.develocity
10+
id 'com.gradle.develocity' version '4.1.1'
911
// https://github.com/equodev/equo-ide/blob/main/plugin-gradle/CHANGELOG.md
1012
id 'dev.equo.ide' version '1.7.8' apply false
1113
// https://github.com/gradle-nexus/publish-plugin/releases

0 commit comments

Comments
 (0)