Skip to content

Commit

Permalink
Rename all internal components to Develocity
Browse files Browse the repository at this point in the history
  • Loading branch information
erichaagdev committed Dec 20, 2024
1 parent ee85813 commit 81ebb9e
Show file tree
Hide file tree
Showing 28 changed files with 114 additions and 114 deletions.
16 changes: 8 additions & 8 deletions .github/actions/gradle/experiment-1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ runs:
if [ ! -z "${{ inputs.args }}" ]; then
ARG_ARGS="${{ inputs.args }}"
fi
ARG_GE_URL=""
ARG_DEVELOCITY_URL=""
if [ ! -z "${{ inputs.gradleEnterpriseUrl }}" ]; then
ARG_GE_URL="${{ inputs.gradleEnterpriseUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.gradleEnterpriseUrl }}"
fi
if [ ! -z "${{ inputs.develocityUrl }}" ]; then
ARG_GE_URL="${{ inputs.develocityUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.develocityUrl }}"
fi
ARG_GE_ENABLE=""
ARG_DEVELOCITY_ENABLE=""
if [ "${{ inputs.enableGradleEnterprise }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableGradleEnterprise }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableGradleEnterprise }}"
fi
if [ "${{ inputs.enableDeveocity }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableDeveocity }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableDeveocity }}"
fi
# Navigate into the folder containing the validation scripts
Expand All @@ -107,8 +107,8 @@ runs:
${ARG_PROJECT_DIR:+"-p" "$ARG_PROJECT_DIR"} \
${ARG_TASKS:+"-t" "$ARG_TASKS"} \
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
${ARG_GE_ENABLE:+"-e"} \
${ARG_DEVELOCITY_URL:+"-s" "$ARG_DEVELOCITY_URL"} \
${ARG_DEVELOCITY_ENABLE:+"-e"} \
${RUNNER_DEBUG:+"--debug"}
# Set the Build Scan urls as outputs
Expand Down
16 changes: 8 additions & 8 deletions .github/actions/gradle/experiment-2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ runs:
if [ ! -z "${{ inputs.args }}" ]; then
ARG_ARGS="${{ inputs.args }}"
fi
ARG_GE_URL=""
ARG_DEVELOCITY_URL=""
if [ ! -z "${{ inputs.gradleEnterpriseUrl }}" ]; then
ARG_GE_URL="${{ inputs.gradleEnterpriseUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.gradleEnterpriseUrl }}"
fi
if [ ! -z "${{ inputs.develocityUrl }}" ]; then
ARG_GE_URL="${{ inputs.develocityUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.develocityUrl }}"
fi
ARG_GE_ENABLE=""
ARG_DEVELOCITY_ENABLE=""
if [ "${{ inputs.enableGradleEnterprise }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableGradleEnterprise }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableGradleEnterprise }}"
fi
if [ "${{ inputs.enableDeveocity }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableDeveocity }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableDeveocity }}"
fi
ARG_FAIL_IF_NOT_FULLY_CACHEABLE=""
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
Expand All @@ -114,8 +114,8 @@ runs:
${ARG_PROJECT_DIR:+"-p" "$ARG_PROJECT_DIR"} \
${ARG_TASKS:+"-t" "$ARG_TASKS"} \
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
${ARG_GE_ENABLE:+"-e"} \
${ARG_DEVELOCITY_URL:+"-s" "$ARG_DEVELOCITY_URL"} \
${ARG_DEVELOCITY_ENABLE:+"-e"} \
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
${RUNNER_DEBUG:+"--debug"}
Expand Down
16 changes: 8 additions & 8 deletions .github/actions/gradle/experiment-3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ runs:
if [ ! -z "${{ inputs.args }}" ]; then
ARG_ARGS="${{ inputs.args }}"
fi
ARG_GE_URL=""
ARG_DEVELOCITY_URL=""
if [ ! -z "${{ inputs.gradleEnterpriseUrl }}" ]; then
ARG_GE_URL="${{ inputs.gradleEnterpriseUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.gradleEnterpriseUrl }}"
fi
if [ ! -z "${{ inputs.develocityUrl }}" ]; then
ARG_GE_URL="${{ inputs.develocityUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.develocityUrl }}"
fi
ARG_GE_ENABLE=""
ARG_DEVELOCITY_ENABLE=""
if [ "${{ inputs.enableGradleEnterprise }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableGradleEnterprise }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableGradleEnterprise }}"
fi
if [ "${{ inputs.enableDeveocity }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableDeveocity }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableDeveocity }}"
fi
ARG_FAIL_IF_NOT_FULLY_CACHEABLE=""
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
Expand All @@ -114,8 +114,8 @@ runs:
${ARG_PROJECT_DIR:+"-p" "$ARG_PROJECT_DIR"} \
${ARG_TASKS:+"-t" "$ARG_TASKS"} \
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
${ARG_GE_ENABLE:+"-e"} \
${ARG_DEVELOCITY_URL:+"-s" "$ARG_DEVELOCITY_URL"} \
${ARG_DEVELOCITY_ENABLE:+"-e"} \
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
${RUNNER_DEBUG:+"--debug"}
Expand Down
16 changes: 8 additions & 8 deletions .github/actions/maven/experiment-1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ runs:
if [ ! -z "${{ inputs.args }}" ]; then
ARG_ARGS="${{ inputs.args }}"
fi
ARG_GE_URL=""
ARG_DEVELOCITY_URL=""
if [ ! -z "${{ inputs.gradleEnterpriseUrl }}" ]; then
ARG_GE_URL="${{ inputs.gradleEnterpriseUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.gradleEnterpriseUrl }}"
fi
if [ ! -z "${{ inputs.develocityUrl }}" ]; then
ARG_GE_URL="${{ inputs.develocityUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.develocityUrl }}"
fi
ARG_GE_ENABLE=""
ARG_DEVELOCITY_ENABLE=""
if [ "${{ inputs.enableGradleEnterprise }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableGradleEnterprise }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableGradleEnterprise }}"
fi
if [ "${{ inputs.enableDeveocity }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableDeveocity }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableDeveocity }}"
fi
ARG_FAIL_IF_NOT_FULLY_CACHEABLE=""
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
Expand All @@ -114,8 +114,8 @@ runs:
${ARG_PROJECT_DIR:+"-p" "$ARG_PROJECT_DIR"} \
${ARG_GOALS:+"-g" "$ARG_GOALS"} \
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
${ARG_GE_ENABLE:+"-e"} \
${ARG_DEVELOCITY_URL:+"-s" "$ARG_DEVELOCITY_URL"} \
${ARG_DEVELOCITY_ENABLE:+"-e"} \
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
${RUNNER_DEBUG:+"--debug"}
Expand Down
16 changes: 8 additions & 8 deletions .github/actions/maven/experiment-2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ runs:
if [ ! -z "${{ inputs.args }}" ]; then
ARG_ARGS="${{ inputs.args }}"
fi
ARG_GE_URL=""
ARG_DEVELOCITY_URL=""
if [ ! -z "${{ inputs.gradleEnterpriseUrl }}" ]; then
ARG_GE_URL="${{ inputs.gradleEnterpriseUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.gradleEnterpriseUrl }}"
fi
if [ ! -z "${{ inputs.develocityUrl }}" ]; then
ARG_GE_URL="${{ inputs.develocityUrl }}"
ARG_DEVELOCITY_URL="${{ inputs.develocityUrl }}"
fi
ARG_GE_ENABLE=""
ARG_DEVELOCITY_ENABLE=""
if [ "${{ inputs.enableGradleEnterprise }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableGradleEnterprise }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableGradleEnterprise }}"
fi
if [ "${{ inputs.enableDeveocity }}" == "true" ]; then
ARG_GE_ENABLE="${{ inputs.enableDeveocity }}"
ARG_DEVELOCITY_ENABLE="${{ inputs.enableDeveocity }}"
fi
ARG_FAIL_IF_NOT_FULLY_CACHEABLE=""
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
Expand All @@ -114,8 +114,8 @@ runs:
${ARG_PROJECT_DIR:+"-p" "$ARG_PROJECT_DIR"} \
${ARG_GOALS:+"-g" "$ARG_GOALS"} \
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
${ARG_GE_ENABLE:+"-e"} \
${ARG_DEVELOCITY_URL:+"-s" "$ARG_DEVELOCITY_URL"} \
${ARG_DEVELOCITY_ENABLE:+"-e"} \
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
${RUNNER_DEBUG:+"--debug"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
run:
shell: ${{ matrix.shell }} {0}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
WSLENV: GITHUB_ACTIONS:GITHUB_SERVER_URL:GITHUB_REPOSITORY:GITHUB_RUN_ID:GITHUB_WORKFLOW:GITHUB_HEAD_REF:GRADLE_ENTERPRISE_ACCESS_KEY
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
WSLENV: GITHUB_ACTIONS:GITHUB_SERVER_URL:GITHUB_REPOSITORY:GITHUB_RUN_ID:GITHUB_WORKFLOW:GITHUB_HEAD_REF:DEVELOCITY_ACCESS_KEY
steps:
- name: Set up WSL
if: ${{ runner.os == 'Windows' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
run:
shell: ${{ matrix.shell }} {0}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
WSLENV: GITHUB_ACTIONS:GITHUB_SERVER_URL:GITHUB_REPOSITORY:GITHUB_RUN_ID:GITHUB_WORKFLOW:GITHUB_HEAD_REF:GRADLE_ENTERPRISE_ACCESS_KEY
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
WSLENV: GITHUB_ACTIONS:GITHUB_SERVER_URL:GITHUB_REPOSITORY:GITHUB_RUN_ID:GITHUB_WORKFLOW:GITHUB_HEAD_REF:DEVELOCITY_ACCESS_KEY
steps:
- name: Set up WSL
if: ${{ runner.os == 'Windows' }}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ dependencies {
develocityInjection("com.gradle:develocity-injection:1.1")
develocityComponents("com.gradle:build-scan-summary:$buildScanSummaryVersion")
develocityMavenComponents("com.gradle:gradle-enterprise-maven-extension:1.18.4")
mavenComponents(project(path = ":configure-gradle-enterprise-maven-extension", configuration = "shadow"))
mavenComponents(project(path = ":configure-develocity-maven-extension", configuration = "shadow"))
thirdPartyMavenComponents("com.gradle:common-custom-user-data-maven-extension:2.0.1")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

public class ConfigureDevelocityAdaptor {

private static final String EXPERIMENT_DIR = System.getProperty("com.gradle.enterprise.build-validation.expDir");
private static final String EXPERIMENT_DIR = System.getProperty("develocity.build-validation.expDir");

private final RootProjectExtractor rootProjectExtractor;
private final Logger logger;
Expand All @@ -35,14 +35,14 @@ public void configure(DevelocityAdapter api, MavenSession session) {

BuildScanApiAdapter buildScan = api.getBuildScan();

String geUrl = System.getProperty("gradle.enterprise.url");
String geAllowUntrustedServer = System.getProperty("gradle.enterprise.allowUntrustedServer");
String develocityUrl = System.getProperty("develocity.url");
String develocityAllowUntrustedServer = System.getProperty("develocity.allowUntrustedServer");

if (geUrl != null && !geUrl.isEmpty()) {
buildScan.setServer(geUrl);
if (develocityUrl != null && !develocityUrl.isEmpty()) {
buildScan.setServer(develocityUrl);
}
if (geAllowUntrustedServer != null && !geAllowUntrustedServer.isEmpty()) {
buildScan.setAllowUntrustedServer(Boolean.parseBoolean(geAllowUntrustedServer));
if (develocityAllowUntrustedServer != null && !develocityAllowUntrustedServer.isEmpty()) {
buildScan.setAllowUntrustedServer(Boolean.parseBoolean(develocityAllowUntrustedServer));
}

String rootProjectName = rootProjectExtractor.extractRootProject(session).getName();
Expand All @@ -53,8 +53,8 @@ public void configure(DevelocityAdapter api, MavenSession session) {

private static void registerBuildScanActions(BuildScanApiAdapter buildScan, String rootProjectName) {
buildScan.buildFinished(buildResult -> {
// communicate via error file that no GE server is set
boolean omitServerUrlValidation = parseBoolean(System.getProperty("com.gradle.enterprise.build-validation.omitServerUrlValidation"));
// communicate via error file that no Develocity server is set
boolean omitServerUrlValidation = parseBoolean(System.getProperty("develocity.build-validation.omitServerUrlValidation"));
if (buildScan.getServer() == null && !omitServerUrlValidation) {
buildScan.publishAlwaysIf(false); // disable publishing, otherwise scans.gradle.com will be used
File errorFile = new File(EXPERIMENT_DIR, "errors.txt");
Expand All @@ -63,19 +63,19 @@ private static void registerBuildScanActions(BuildScanApiAdapter buildScan, Stri
});

buildScan.buildFinished(buildResult -> {
String expId = System.getProperty("com.gradle.enterprise.build-validation.expId");
String expId = System.getProperty("develocity.build-validation.expId");
addCustomValueAndSearchLink(buildScan, "Experiment id", expId);
buildScan.tag(expId);

String runId = System.getProperty("com.gradle.enterprise.build-validation.runId");
String runId = System.getProperty("develocity.build-validation.runId");
addCustomValueAndSearchLink(buildScan, "Experiment run id", runId);

String scriptsVersion = System.getProperty("com.gradle.enterprise.build-validation.scriptsVersion");
String scriptsVersion = System.getProperty("develocity.build-validation.scriptsVersion");
buildScan.value("Build validation scripts", scriptsVersion);
});

buildScan.buildScanPublished(scan -> {
String runNum = System.getProperty("com.gradle.enterprise.build-validation.runNum");
String runNum = System.getProperty("develocity.build-validation.runNum");
URI buildScanUri = scan.getBuildScanUri();
String buildScanId = scan.getBuildScanId();
String port = buildScanUri.getPort() != -1 ? ":" + buildScanUri.getPort() : "";
Expand Down
4 changes: 2 additions & 2 deletions components/scripts/gradle/01-validate-incremental-building.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ git_branch=''
project_dir=''
tasks=''
extra_args=''
enable_ge=''
ge_server=''
enable_develocity=''
develocity_server=''
interactive_mode=''

main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ git_branch=''
project_dir=''
tasks=''
extra_args=''
enable_ge=''
ge_server=''
enable_develocity=''
develocity_server=''
interactive_mode=''

main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ git_branch=''
project_dir=''
tasks=''
extra_args=''
enable_ge=''
ge_server=''
enable_develocity=''
develocity_server=''
interactive_mode=''

main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ git_options='<not available>'
project_dir='<not available>'
extra_args='<not available>'
tasks=''
enable_ge=''
ge_server=''
enable_develocity=''
develocity_server=''
interactive_mode=''
mapping_file=''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ git_branch=''
project_dir=''
tasks=''
extra_args=''
enable_ge=''
ge_server=''
enable_develocity=''
develocity_server=''
interactive_mode=''

ci_build_scan_url=''
Expand Down Expand Up @@ -148,7 +148,7 @@ validate_required_args() {
fi
fi

if [[ "${enable_ge}" == "on" && -z "${ge_server}" ]]; then
if [[ "${enable_develocity}" == "on" && -z "${develocity_server}" ]]; then
_PRINT_HELP=yes die "ERROR: Missing required argument when enabling Develocity on a project not already connected: --develocity-server" "${INVALID_INPUT}"
fi
}
Expand Down Expand Up @@ -469,11 +469,11 @@ generate_command_to_repeat_experiment() {
cmd+=("-u" "${remote_build_cache_url}")
fi

if [ -n "${ge_server}" ]; then
cmd+=("-s" "${ge_server}")
if [ -n "${develocity_server}" ]; then
cmd+=("-s" "${develocity_server}")
fi

if [[ "${enable_ge}" == "on" ]]; then
if [[ "${enable_develocity}" == "on" ]]; then
cmd+=("-e")
fi

Expand Down
4 changes: 2 additions & 2 deletions components/scripts/lib/build-scan-online.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

# This is a helper function for the common pattern of reading Build Scan metadata
# from the build-scans.csv file, then retrieving build metrics using the Gradle
# Enterprise API.
# from the build-scans.csv file, then retrieving build metrics using the
# Develocity API.
process_build_scan_data_online() {
read_build_scan_metadata
fetch_build_scans_and_build_time_metrics 'brief_logging' "${build_scan_urls[@]}"
Expand Down
Loading

0 comments on commit 81ebb9e

Please sign in to comment.