Skip to content

Onboard Renovate for Develocity plugin and Gradle wrapper upgrades#972

Draft
clayburn wants to merge 1 commit into
mainfrom
cj/onboard-renovate
Draft

Onboard Renovate for Develocity plugin and Gradle wrapper upgrades#972
clayburn wants to merge 1 commit into
mainfrom
cj/onboard-renovate

Conversation

@clayburn

@clayburn clayburn commented May 22, 2026

Copy link
Copy Markdown
Member

Summary

Adds a narrowly-scoped .github/renovate.json5 so this repo manages its own Develocity Gradle plugin and Gradle wrapper upgrades. Renovate is scoped via enabledManagers so it does not overlap with Dependabot's existing coverage.

What Renovate will manage here

Develocity Gradle plugin (com.gradle:develocity-gradle-plugin)

Custom regex managers track the plugin version across every file that hard-codes it but isn't reachable by the standard Gradle manager. The patterns capture any X.Y(.Z) version; the packageRules block below filters to the current 4.x line and skips the intentionally-pinned legacy 3.16.2 references via matchCurrentVersion. When the plugin's major version changes, the only edit is bumping the <5.0.0 bounds in packageRules — no regex updates needed.

Files touched:

  • .github/workflows/integ-test-inject-develocity.ymlplugin-version: [..., '<X.Y.Z>'] matrix arrays and - plugin-version: '<X.Y.Z>' matrix include entries
  • sources/src/develocity/build-scan.tsmaybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '<X.Y.Z>')
  • docs/setup-gradle.md — three reference shapes:
    • develocity-plugin-version: '<X.Y>' (YAML examples in the body)
    • `v<X.Y.Z>` of the [Develocity Gradle plugin] (prose reference)
    • DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION: '<X.Y>' (env-var YAML example)
  • .github/workflow-samples/groovy-dsl/settings.gradleid "com.gradle.develocity" version "<X.Y.Z>"
  • .github/workflow-samples/kotlin-dsl/settings.gradle.ktsid("com.gradle.develocity") version "<X.Y.Z>"
  • .github/workflow-samples/no-wrapper/settings.gradle — same as groovy-dsl
  • .github/workflow-samples/no-wrapper-gradle-5/build.gradle — same as groovy-dsl
  • .github/workflow-samples/non-executable-wrapper/settings.gradle — same as groovy-dsl
  • sources/test/init-scripts/settings.gradle — same as groovy-dsl
  • sources/test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/BaseInitScriptTest.groovyDEVELOCITY_PLUGIN_VERSION = '<X.Y.Z>'
  • sources/test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/TestBuildResultRecorder.groovyid 'com.gradle.develocity' version '<X.Y.Z>'

All grouped under a single "Develocity Gradle plugin" PR via groupName.

Gradle wrappers

The native gradle-wrapper manager, scoped to six specific gradle-wrapper.properties files:

  • .github/workflow-samples/gradle-plugin/gradle/wrapper/gradle-wrapper.properties
  • .github/workflow-samples/groovy-dsl/gradle/wrapper/gradle-wrapper.properties
  • .github/workflow-samples/java-toolchain/gradle/wrapper/gradle-wrapper.properties
  • .github/workflow-samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.properties
  • .github/workflow-samples/non-executable-wrapper/gradle/wrapper/gradle-wrapper.properties
  • sources/test/init-scripts/gradle/wrapper/gradle-wrapper.properties

The cache-cleanup sample's wrapper is intentionally left unmanaged here (it's been kept current by other means). All six are grouped under a single "Gradle wrappers" PR.

What Dependabot continues to manage

.github/dependabot.yml is untouched. Dependabot keeps handling:

  • npm dependencies in sources/
  • github-actions across /, .github/actions/build-dist, .github/actions/init-integ-test
  • gradle (Maven coordinates) across the seven workflow-sample / init-scripts directories

Config shape

Extends gradle/renovate-agent//presets/dv-automerge-minor.json5 (the shared Gradle Renovate baseline — minor/patch auto-merge once status checks pass, DCO sign-off on bot commits, reviewers from CODEOWNERS), plus config:recommended and :disableDependencyDashboard.

Verification

Once merged, the next agent run should open a "Configure Renovate" PR; after that, expect "Develocity Gradle plugin" and "Gradle wrappers" PRs to appear when newer versions are available upstream.

@clayburn clayburn force-pushed the cj/onboard-renovate branch 3 times, most recently from 1acb8df to 9442773 Compare May 22, 2026 14:55
Adds .github/renovate.json5 so this repo manages its own Develocity
Gradle plugin version (across the workflow YAML, build-scan.ts, the
setup-gradle docs, the sample settings.gradle / build.gradle files,
and the init-script test groovy files) and Gradle wrapper bumps in the
five sample directories that previously had wrappers maintained
externally.

Renovate is scoped narrowly via enabledManagers so it does not overlap
with the npm, github-actions, and Maven-coordinate Gradle updates that
Dependabot continues to handle through .github/dependabot.yml.
@clayburn clayburn force-pushed the cj/onboard-renovate branch from 9442773 to 5d36344 Compare May 22, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant