|
| 1 | +--- |
| 2 | +# Dependabot configuration |
| 3 | +# |
| 4 | +# This file configures automated dependency updates for a small Java/Gradle project. |
| 5 | +# |
| 6 | +# Goals: |
| 7 | +# - keep dependencies and Gradle plugins up to date with minimal noise |
| 8 | +# - keep GitHub Actions workflow updates separate from application dependencies |
| 9 | +# - batch minor and patch updates into a few focused PRs |
| 10 | +# - keep potentially breaking (major) updates visible as separate PRs |
| 11 | +# |
| 12 | +# Simplified grouping strategy for this project: |
| 13 | +# - One group for Gradle plugins (Spotless, Lombok, Shadow, Sonar, etc.) |
| 14 | +# - One catch-all group for all other Gradle dependencies (libraries, test stack) |
| 15 | +# - Major updates are not grouped and will be opened as separate PRs by default |
| 16 | +# |
1 | 17 | version: 2 |
2 | 18 | updates: |
| 19 | + # 1) Keep GitHub Actions workflows up to date |
3 | 20 | - package-ecosystem: github-actions |
4 | | - directory: / |
| 21 | + directory: / # Look for workflow files in the repo root |
5 | 22 | schedule: |
6 | 23 | interval: weekly |
7 | 24 | labels: [dependencies, automated, actions] |
8 | 25 | groups: |
9 | 26 | actions-minor-patch: |
| 27 | + # Group all non-breaking (minor + patch) updates into a single PR |
10 | 28 | update-types: [minor, patch] |
11 | 29 | actions-major: |
| 30 | + # Major updates are potentially breaking → separate PRs |
12 | 31 | update-types: [major] |
| 32 | + # 2) Java / Gradle dependencies (libraries + plugins) |
13 | 33 | - package-ecosystem: gradle |
14 | | - directory: / |
| 34 | + directory: / # Root of the Gradle project |
15 | 35 | schedule: |
16 | 36 | interval: weekly |
17 | | - labels: [dependencies, automated, java] |
| 37 | + labels: [dependencies, automated, gradle] |
18 | 38 | groups: |
19 | | - gradle-minor-patch: |
| 39 | + gradle-plugins-minor-patch: |
| 40 | + # Gradle plugins from the version catalog: |
| 41 | + # - io.freefair.lombok |
| 42 | + # - com.diffplug.spotless |
| 43 | + # - com.gradleup.shadow |
| 44 | + # - org.sonarqube |
| 45 | + # (and any other Gradle plugins you might add later) |
| 46 | + patterns: |
| 47 | + - io.freefair.lombok |
| 48 | + - com.diffplug.spotless |
| 49 | + - com.gradleup.shadow |
| 50 | + - org.sonarqube |
| 51 | + update-types: [minor, patch] |
| 52 | + gradle-deps-minor-patch: |
| 53 | + # All other Gradle dependencies (libraries, test stack, commons, etc.) |
| 54 | + # will be grouped together for minor + patch updates. |
| 55 | + # |
| 56 | + # Examples in this project: |
| 57 | + # - org.apache.commons:commons-lang3 |
| 58 | + # - org.apache.commons:commons-collections4 |
| 59 | + # - junit (via version catalog) |
| 60 | + # |
| 61 | + # Any major updates for these dependencies will be opened |
| 62 | + # as separate PRs by default. |
20 | 63 | update-types: [minor, patch] |
21 | | - gradle-major: |
22 | | - update-types: [major] |
|
0 commit comments