19
19
20
20
public class ConfigureDevelocityAdaptor {
21
21
22
- private static final String EXPERIMENT_DIR = System .getProperty ("com.gradle.enterprise .build-validation.expDir" );
22
+ private static final String EXPERIMENT_DIR = System .getProperty ("develocity .build-validation.expDir" );
23
23
24
24
private final RootProjectExtractor rootProjectExtractor ;
25
25
private final Logger logger ;
@@ -35,14 +35,14 @@ public void configure(DevelocityAdapter api, MavenSession session) {
35
35
36
36
BuildScanApiAdapter buildScan = api .getBuildScan ();
37
37
38
- String geUrl = System .getProperty ("gradle.enterprise .url" );
39
- String geAllowUntrustedServer = System .getProperty ("gradle.enterprise .allowUntrustedServer" );
38
+ String develocityUrl = System .getProperty ("develocity .url" );
39
+ String develocityAllowUntrustedServer = System .getProperty ("develocity .allowUntrustedServer" );
40
40
41
- if (geUrl != null && !geUrl .isEmpty ()) {
42
- buildScan .setServer (geUrl );
41
+ if (develocityUrl != null && !develocityUrl .isEmpty ()) {
42
+ buildScan .setServer (develocityUrl );
43
43
}
44
- if (geAllowUntrustedServer != null && !geAllowUntrustedServer .isEmpty ()) {
45
- buildScan .setAllowUntrustedServer (Boolean .parseBoolean (geAllowUntrustedServer ));
44
+ if (develocityAllowUntrustedServer != null && !develocityAllowUntrustedServer .isEmpty ()) {
45
+ buildScan .setAllowUntrustedServer (Boolean .parseBoolean (develocityAllowUntrustedServer ));
46
46
}
47
47
48
48
String rootProjectName = rootProjectExtractor .extractRootProject (session ).getName ();
@@ -53,8 +53,8 @@ public void configure(DevelocityAdapter api, MavenSession session) {
53
53
54
54
private static void registerBuildScanActions (BuildScanApiAdapter buildScan , String rootProjectName ) {
55
55
buildScan .buildFinished (buildResult -> {
56
- // communicate via error file that no GE server is set
57
- boolean omitServerUrlValidation = parseBoolean (System .getProperty ("com.gradle.enterprise .build-validation.omitServerUrlValidation" ));
56
+ // communicate via error file that no Develocity server is set
57
+ boolean omitServerUrlValidation = parseBoolean (System .getProperty ("develocity .build-validation.omitServerUrlValidation" ));
58
58
if (buildScan .getServer () == null && !omitServerUrlValidation ) {
59
59
buildScan .publishAlwaysIf (false ); // disable publishing, otherwise scans.gradle.com will be used
60
60
File errorFile = new File (EXPERIMENT_DIR , "errors.txt" );
@@ -63,19 +63,19 @@ private static void registerBuildScanActions(BuildScanApiAdapter buildScan, Stri
63
63
});
64
64
65
65
buildScan .buildFinished (buildResult -> {
66
- String expId = System .getProperty ("com.gradle.enterprise .build-validation.expId" );
66
+ String expId = System .getProperty ("develocity .build-validation.expId" );
67
67
addCustomValueAndSearchLink (buildScan , "Experiment id" , expId );
68
68
buildScan .tag (expId );
69
69
70
- String runId = System .getProperty ("com.gradle.enterprise .build-validation.runId" );
70
+ String runId = System .getProperty ("develocity .build-validation.runId" );
71
71
addCustomValueAndSearchLink (buildScan , "Experiment run id" , runId );
72
72
73
- String scriptsVersion = System .getProperty ("com.gradle.enterprise .build-validation.scriptsVersion" );
73
+ String scriptsVersion = System .getProperty ("develocity .build-validation.scriptsVersion" );
74
74
buildScan .value ("Build validation scripts" , scriptsVersion );
75
75
});
76
76
77
77
buildScan .buildScanPublished (scan -> {
78
- String runNum = System .getProperty ("com.gradle.enterprise .build-validation.runNum" );
78
+ String runNum = System .getProperty ("develocity .build-validation.runNum" );
79
79
URI buildScanUri = scan .getBuildScanUri ();
80
80
String buildScanId = scan .getBuildScanId ();
81
81
String port = buildScanUri .getPort () != -1 ? ":" + buildScanUri .getPort () : "" ;
0 commit comments