File tree 2 files changed +11
-16
lines changed
2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1
1
import com.gradle.enterprise.gradleplugin.testretry.retry
2
- import com.gradle.enterprise.gradleplugin.testselection .PredictiveTestSelectionProfile.FAST
3
- import com.gradle.enterprise.gradleplugin.testselection .PredictiveTestSelectionProfile.STANDARD
2
+ import com.gradle.develocity.agent.gradle.test .PredictiveTestSelectionProfile.FAST
3
+ import com.gradle.develocity.agent.gradle.test .PredictiveTestSelectionProfile.STANDARD
4
4
import groovy.json.JsonSlurper
5
5
6
6
// Upgrade transitive dependencies in plugin classpath
@@ -122,18 +122,18 @@ tasks.withType<Test>().configureEach {
122
122
systemProperty(" pluginGroupId" , pluginGroupId)
123
123
systemProperty(" org.gradle.android.cache-fix.version" , version)
124
124
useJUnitPlatform()
125
- retry {
125
+ develocity.testRetry {
126
126
maxRetries = if (isCI) 1 else 0
127
127
maxFailures = 20
128
128
}
129
129
130
- predictiveSelection {
130
+ develocity.predictiveTestSelection {
131
131
enabled = providers.gradleProperty(" isPTSEnabled" ).map { it != " false" }.orElse(true )
132
132
}
133
133
}
134
134
135
135
tasks.test {
136
- predictiveSelection {
136
+ develocity.predictiveTestSelection {
137
137
profile = STANDARD
138
138
}
139
139
}
@@ -157,7 +157,7 @@ getSupportedVersions().keys.forEach { androidVersion ->
157
157
}
158
158
}
159
159
160
- predictiveSelection {
160
+ develocity.predictiveTestSelection {
161
161
profile = FAST
162
162
}
163
163
}
Original file line number Diff line number Diff line change 1
- import com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
2
-
3
1
plugins {
4
- id(" com.gradle.enterprise" ) version " 3.16.2 "
2
+ id(" com.gradle.enterprise" ) version " 3.17 "
5
3
id(" com.gradle.common-custom-user-data-gradle-plugin" ) version " 1.13"
6
4
id(" org.gradle.toolchains.foojay-resolver-convention" ) version " 0.8.0"
7
5
}
8
6
9
7
val isCI = providers.environmentVariable(" CI" ).isPresent
10
8
11
- gradleEnterprise {
9
+ develocity {
12
10
server = " https://ge.solutions-team.gradle.com"
13
11
buildScan {
14
- capture { isTaskInputFiles = true }
15
- isUploadInBackground = ! isCI
16
- publishAlways()
17
- this as BuildScanExtensionWithHiddenFeatures
18
- publishIfAuthenticated()
12
+ uploadInBackground = ! isCI
13
+ publishing.onlyIf { it.isAuthenticated }
19
14
obfuscation {
20
15
ipAddresses { addresses -> addresses.map { " 0.0.0.0" } }
21
16
}
@@ -27,7 +22,7 @@ buildCache {
27
22
isEnabled = true
28
23
}
29
24
30
- remote(gradleEnterprise .buildCache) {
25
+ remote(develocity .buildCache) {
31
26
isEnabled = true
32
27
val accessKey = System .getenv(" GRADLE_ENTERPRISE_ACCESS_KEY" )
33
28
isPush = isCI && ! accessKey.isNullOrEmpty()
You can’t perform that action at this time.
0 commit comments