Skip to content

Commit cacd110

Browse files
Update common files (#701)
1 parent f0a6212 commit cacd110

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/renovate.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
],
5+
"addLabels": ["dependency-upgrade"],
6+
"schedule": [
7+
"every weekend"
8+
],
9+
"prHourlyLimit": 1,
10+
"prConcurrentLimit": 20,
11+
"timezone": "Europe/Prague"
12+
}

.github/workflows/graalvm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
5555
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
5656
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
57+
PREDICTIVE_TEST_SELECTION: "${{ github.event_name == 'pull_request' && 'true' || 'false' }}"
5758
- name: Publish Test Report
5859
if: always()
5960
uses: mikepenz/[email protected]

.github/workflows/gradle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
5858
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
5959
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
60+
PREDICTIVE_TEST_SELECTION: "${{ github.event_name == 'pull_request' && 'true' || 'false' }}"
6061
- name: Publish Test Report
6162
if: always()
6263
uses: mikepenz/[email protected]

MAINTAINING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ follow a slightly different strategy.
8888

8989
All Micronaut repos have 2 dependency upgrade checking mechanism:
9090

91-
1. Dependabot: it has the advantage that it performs dependency upgrades not only on build dependencies, but also on
91+
1. Renovate: it has the advantage that it performs dependency upgrades not only on build dependencies, but also on
9292
GitHub Actions workflows. On the other hand, its biggest downside is that it's unable to find newer versions for
9393
those defined in `gradle.properties`. It will also send different PRs for the same version upgrade if the artifact ID
9494
is different. For example, if you have `com.example:client:1.0` and `com.example:server:1.0`, and a new 1.1 version
@@ -99,9 +99,9 @@ All Micronaut repos have 2 dependency upgrade checking mechanism:
9999
during weekdays.
100100

101101
The consequence of having both approaches in place is that we get multiple dependency upgrade PRs: one created by
102-
`micronaut-build` via our automation, and one or many (one per dependency) created by Dependabot. When merging those, it
102+
`micronaut-build` via our automation, and one or many (one per dependency) created by Renovate. When merging those, it
103103
is better to prefer the `micronaut-build` ones, if possible, for 2 reasons: a) they attempt to upgrade multiple dependencies
104-
in a single PR, which creates less noise in the Git history; b) Once you merge that, Dependabot will react and automatically
104+
in a single PR, which creates less noise in the Git history; b) Once you merge that, Renovate will react and automatically
105105
close its own PRs if the dependecy is up-to-date.
106106

107107
When an upgrade to a new version arrives, we need to be careful when merging, so that we don't introduce an
@@ -111,7 +111,7 @@ information.
111111

112112
Note that if a new version arrives and we are not ready yet to do the upgrade, you need to
113113
[pin the old version](https://github.com/micronaut-projects/micronaut-build/#configuration-options), because otherwise,
114-
Dependabot and our workflow will keep sending PRs. You should also create an issue to upgrade so that it's not forgotten.
114+
Renovate and our workflow will keep sending PRs. You should also create an issue to upgrade so that it's not forgotten.
115115

116116
#### Files sync
117117

@@ -126,7 +126,7 @@ template repo will get propagated automatically. The files propagated are:
126126
* `gradle.yml`.
127127
* `release.yml`.
128128
* `release-notes.yml`.
129-
* Dependabot configuration (`.github/dependabot.yml`).
129+
* Renovate configuration (`.github/renovate.json`).
130130
* Gradle wrapper.
131131
* `.gitignore`.
132132
* `ISSUE_TEMPLATE.md`, `LICENSE`, `MAINTAINING.md`, `config/HEADER` and `config/spotless.license.java`.

0 commit comments

Comments
 (0)