File tree 1 file changed +16
-13
lines changed
1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 1
1
rootProject.name = " rewrite-migrate-java"
2
2
3
+ pluginManagement {
4
+ repositories {
5
+ mavenLocal()
6
+ gradlePluginPortal()
7
+ }
8
+ }
9
+
3
10
plugins {
4
- id(" com.gradle.enterprise " ) version " latest.release"
11
+ id(" com.gradle.develocity " ) version " latest.release"
5
12
id(" com.gradle.common-custom-user-data-gradle-plugin" ) version " latest.release"
6
13
}
7
14
8
- gradleEnterprise {
9
- val isCiServer = System .getenv(" CI" )?.equals(" true" ) ? : false
15
+ develocity {
10
16
server = " https://ge.openrewrite.org/"
11
-
17
+ val isCiServer = System .getenv(" CI" )?.equals(" true" ) ? : false
18
+ val accessKey = System .getenv(" GRADLE_ENTERPRISE_ACCESS_KEY" )
19
+ val authenticated = ! accessKey.isNullOrBlank()
12
20
buildCache {
13
- remote(gradleEnterprise .buildCache) {
21
+ remote(develocity .buildCache) {
14
22
isEnabled = true
15
- val accessKey = System .getenv(" GRADLE_ENTERPRISE_ACCESS_KEY" )
16
- isPush = isCiServer && ! accessKey.isNullOrBlank()
23
+ isPush = isCiServer && authenticated
17
24
}
18
25
}
19
26
20
27
buildScan {
21
28
capture {
22
- isTaskInputFiles = true
29
+ fileFingerprints = true
23
30
}
24
31
25
- isUploadInBackground = ! isCiServer
26
-
27
- publishAlways()
28
- this as com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
29
- publishIfAuthenticated()
32
+ uploadInBackground = ! isCiServer
30
33
}
31
34
}
You can’t perform that action at this time.
0 commit comments