File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,12 +52,6 @@ allprojects {
5252 }
5353}
5454
55-
56- extensions.findByName(" buildScan" )?.withGroovyBuilder {
57- setProperty(" termsOfServiceUrl" , " https://gradle.com/terms-of-service" )
58- setProperty(" termsOfServiceAgree" , " yes" )
59- }
60-
6155subprojects {
6256 afterEvaluate {
6357 configureKotlinOptIns()
Original file line number Diff line number Diff line change @@ -46,9 +46,20 @@ dependencyResolutionManagement {
4646}
4747
4848plugins {
49+ id(" com.gradle.develocity" ) version " 4.3.2"
4950 id(" org.gradle.toolchains.foojay-resolver-convention" ) version " 1.0.0"
5051}
5152
53+ develocity {
54+ buildScan {
55+ // Keep scans opt-in via --scan and only allow publication from CI.
56+ publishing.onlyIf { ! System .getenv(" CI" ).isNullOrEmpty() }
57+ termsOfUseUrl = " https://gradle.com/terms-of-service"
58+ termsOfUseAgree = " yes"
59+ uploadInBackground = System .getenv(" CI" ).isNullOrEmpty()
60+ }
61+ }
62+
5263fun includeProject (projectPath : String , dir : String? = null) {
5364 include(projectPath)
5465 if (dir != null ) project(projectPath).projectDir = file(dir)
You can’t perform that action at this time.
0 commit comments