@@ -16,6 +16,7 @@ void configureDevelocity(DevelocityAdapter develocity) {
16
16
develocity.setServer("https://enterprise-samples.gradle.com");
17
17
develocity.setAllowUntrustedServer(false);
18
18
19
+ develocity.setProjectId("ccud-injection");
19
20
*/
20
21
}
21
22
@@ -25,15 +26,37 @@ void configureBuildScanPublishing(BuildScanAdapter buildScan) {
25
26
boolean isCiServer = System.getenv().containsKey("CI");
26
27
27
28
buildScan.publishAlways();
28
- buildScan.capture(capture -> capture.setTaskInputFiles(true));
29
29
buildScan.setUploadInBackground(!isCiServer);
30
30
31
- */
31
+ buildScan.tag("CUSTOM_TAG");
32
+ buildScan.link("custom-link", "https://enterprise-samples.gradle.com/faq");
33
+ buildScan.value("Custom Value Key", "Custom value");
34
+
35
+ buildScan.capture(capture -> {
36
+ capture.setFileFingerprints(true);
37
+ capture.setBuildLogging(false);
38
+ capture.setTestLogging(false);
39
+ });
40
+
41
+ buildScan.obfuscation(obfuscation -> {
42
+ obfuscation.hostname(s -> "FIXED-HOSTNAME");
43
+ obfuscation.username(s -> "FIXED-USERNAME");
44
+ });
45
+
46
+ buildScan.background(adapter -> {
47
+ adapter.tag("BACKGROUND_TAG");
48
+ });
49
+
50
+ buildScan.buildFinished(adapter -> {
51
+ buildScan.tag("BUILD_FINISHED_TAG");
52
+ });
53
+
54
+ */
32
55
}
33
56
34
57
void configureBuildCache (BuildCacheConfigurationAdapter buildCache ) {
35
-
36
58
/* Example of build cache configuration
59
+
37
60
boolean isCiServer = System.getenv().containsKey("CI");
38
61
39
62
// Enable the local build cache for all local and CI builds
@@ -43,9 +66,9 @@ void configureBuildCache(BuildCacheConfigurationAdapter buildCache) {
43
66
// Only permit store operations to the remote build cache for CI builds
44
67
// Local builds will only read from the remote build cache
45
68
buildCache.getRemote().setEnabled(true);
46
- buildCache.getRemote().setStoreEnabled (isCiServer);
69
+ buildCache.getRemote().setPush (isCiServer);
47
70
48
- */
71
+ */
49
72
}
50
73
51
74
}
0 commit comments