Onboard Renovate for Develocity plugin and Gradle wrapper upgrades#972
Draft
clayburn wants to merge 1 commit into
Draft
Onboard Renovate for Develocity plugin and Gradle wrapper upgrades#972clayburn wants to merge 1 commit into
clayburn wants to merge 1 commit into
Conversation
1acb8df to
9442773
Compare
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.
9442773 to
5d36344
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a narrowly-scoped
.github/renovate.json5so this repo manages its own Develocity Gradle plugin and Gradle wrapper upgrades. Renovate is scoped viaenabledManagersso 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; thepackageRulesblock below filters to the current 4.x line and skips the intentionally-pinned legacy3.16.2references viamatchCurrentVersion. When the plugin's major version changes, the only edit is bumping the<5.0.0bounds inpackageRules— no regex updates needed.Files touched:
.github/workflows/integ-test-inject-develocity.yml—plugin-version: [..., '<X.Y.Z>']matrix arrays and- plugin-version: '<X.Y.Z>'matrix include entriessources/src/develocity/build-scan.ts—maybeExportVariable('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.gradle—id "com.gradle.develocity" version "<X.Y.Z>".github/workflow-samples/kotlin-dsl/settings.gradle.kts—id("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-dslsources/test/init-scripts/settings.gradle— same as groovy-dslsources/test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/BaseInitScriptTest.groovy—DEVELOCITY_PLUGIN_VERSION = '<X.Y.Z>'sources/test/init-scripts/src/test/groovy/com/gradle/gradlebuildaction/TestBuildResultRecorder.groovy—id 'com.gradle.develocity' version '<X.Y.Z>'All grouped under a single "Develocity Gradle plugin" PR via
groupName.Gradle wrappers
The native
gradle-wrappermanager, scoped to six specificgradle-wrapper.propertiesfiles:.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.propertiessources/test/init-scripts/gradle/wrapper/gradle-wrapper.propertiesThe
cache-cleanupsample'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.ymlis untouched. Dependabot keeps handling:npmdependencies insources/github-actionsacross/,.github/actions/build-dist,.github/actions/init-integ-testgradle(Maven coordinates) across the seven workflow-sample / init-scripts directoriesConfig 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), plusconfig:recommendedand: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.