1919
2020public class ConfigureDevelocityAdaptor {
2121
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" );
2323
2424 private final RootProjectExtractor rootProjectExtractor ;
2525 private final Logger logger ;
@@ -35,14 +35,14 @@ public void configure(DevelocityAdapter api, MavenSession session) {
3535
3636 BuildScanApiAdapter buildScan = api .getBuildScan ();
3737
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" );
4040
41- if (geUrl != null && !geUrl .isEmpty ()) {
42- buildScan .setServer (geUrl );
41+ if (develocityUrl != null && !develocityUrl .isEmpty ()) {
42+ buildScan .setServer (develocityUrl );
4343 }
44- if (geAllowUntrustedServer != null && !geAllowUntrustedServer .isEmpty ()) {
45- buildScan .setAllowUntrustedServer (Boolean .parseBoolean (geAllowUntrustedServer ));
44+ if (develocityAllowUntrustedServer != null && !develocityAllowUntrustedServer .isEmpty ()) {
45+ buildScan .setAllowUntrustedServer (Boolean .parseBoolean (develocityAllowUntrustedServer ));
4646 }
4747
4848 String rootProjectName = rootProjectExtractor .extractRootProject (session ).getName ();
@@ -53,8 +53,8 @@ public void configure(DevelocityAdapter api, MavenSession session) {
5353
5454 private static void registerBuildScanActions (BuildScanApiAdapter buildScan , String rootProjectName ) {
5555 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" ));
5858 if (buildScan .getServer () == null && !omitServerUrlValidation ) {
5959 buildScan .publishAlwaysIf (false ); // disable publishing, otherwise scans.gradle.com will be used
6060 File errorFile = new File (EXPERIMENT_DIR , "errors.txt" );
@@ -63,19 +63,19 @@ private static void registerBuildScanActions(BuildScanApiAdapter buildScan, Stri
6363 });
6464
6565 buildScan .buildFinished (buildResult -> {
66- String expId = System .getProperty ("com.gradle.enterprise .build-validation.expId" );
66+ String expId = System .getProperty ("develocity .build-validation.expId" );
6767 addCustomValueAndSearchLink (buildScan , "Experiment id" , expId );
6868 buildScan .tag (expId );
6969
70- String runId = System .getProperty ("com.gradle.enterprise .build-validation.runId" );
70+ String runId = System .getProperty ("develocity .build-validation.runId" );
7171 addCustomValueAndSearchLink (buildScan , "Experiment run id" , runId );
7272
73- String scriptsVersion = System .getProperty ("com.gradle.enterprise .build-validation.scriptsVersion" );
73+ String scriptsVersion = System .getProperty ("develocity .build-validation.scriptsVersion" );
7474 buildScan .value ("Build validation scripts" , scriptsVersion );
7575 });
7676
7777 buildScan .buildScanPublished (scan -> {
78- String runNum = System .getProperty ("com.gradle.enterprise .build-validation.runNum" );
78+ String runNum = System .getProperty ("develocity .build-validation.runNum" );
7979 URI buildScanUri = scan .getBuildScanUri ();
8080 String buildScanId = scan .getBuildScanId ();
8181 String port = buildScanUri .getPort () != -1 ? ":" + buildScanUri .getPort () : "" ;
0 commit comments