Skip to content

Commit f398ac5

Browse files
committed
Prevent major upgrades for l-mongodb4 and l-slf4j-impl
We split the Dependabot config, hoping it will not upgrade `l-mongodb4` and `l-mongodb` at the same time.
1 parent 404ac48 commit f398ac5

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

.github/dependabot.yaml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,9 @@ updates:
108108
# WebCompere System Stubs requires Java 11
109109
- dependency-name: "uk.org.webcompere:*"
110110
versions: [ "[2.1,)" ]
111-
# SLF4J 1.7.x should only upgrade to 1.7.x and
112-
# SLF4J 2.x should only upgrade to 2.x.
113-
- dependency-name: "org.slf4j:slf4j-api"
114-
update-types: [ "version-update:semver-major" ]
115111
# Plexus Utils 4.x are for Maven 4.x
116112
- dependency-name: "org.codehaus.plexus:plexus-utils"
117113
versions: [ "[4,)" ]
118-
# MongoDB 3.x should only upgrade to 3.x and
119-
# MongoDB 4.x should only upgrade to 4.x
120-
- dependency-name: "org.mongodb:*"
121-
update-types: [ "version-update:semver-major" ]
122114
# H2 version 2.3.x requires Java 11
123115
- dependency-name: "com.h2database:h2"
124116
versions: [ "[2.3,)" ]
@@ -127,6 +119,24 @@ updates:
127119
- dependency-name: "org.fusesource.jansi:jansi"
128120
update-types: [ "version-update:semver-major" ]
129121

122+
- package-ecosystem: maven
123+
directories:
124+
- "/log4j-mongodb4"
125+
- "/log4j-slf4j-impl"
126+
open-pull-requests-limit: 10
127+
schedule:
128+
interval: "daily"
129+
target-branch: "2.x"
130+
registries:
131+
- maven-central
132+
ignore:
133+
# MongoDB 4.x should only upgrade to 4.x
134+
- dependency-name: "org.mongodb:*"
135+
versions: [ "[5,)" ]
136+
# SLF4J 1.7.x should only upgrade to 1.7.x and
137+
- dependency-name: "org.slf4j:slf4j-api"
138+
versions: [ "[1,)" ]
139+
130140
- package-ecosystem: github-actions
131141
directory: "/"
132142
schedule:
@@ -158,10 +168,6 @@ updates:
158168
update-types: [ "version-update:semver-minor", "version-update:semver-patch" ]
159169
- dependency-name: "org.openrewrite.recipe:*"
160170
update-types: [ "version-update:semver-minor", "version-update:semver-patch" ]
161-
# SLF4J 1.7.x should only upgrade to 1.7.x and
162-
# SLF4J 2.x should only upgrade to 2.x.
163-
- dependency-name: "org.slf4j:slf4j-api"
164-
update-types: [ "version-update:semver-major" ]
165171
# Plexus Utils 4.x are for Maven 4.x
166172
- dependency-name: "org.codehaus.plexus:plexus-utils"
167173
versions: [ "[4,)" ]
@@ -173,6 +179,20 @@ updates:
173179
- dependency-name: "org.fusesource.jansi:jansi"
174180
update-types: [ "version-update:semver-major" ]
175181

182+
- package-ecosystem: maven
183+
directories:
184+
- "/log4j-slf4j-impl"
185+
open-pull-requests-limit: 10
186+
schedule:
187+
interval: "daily"
188+
target-branch: "main"
189+
registries:
190+
- maven-central
191+
ignore:
192+
# SLF4J 1.7.x should only upgrade to 1.7.x and
193+
- dependency-name: "org.slf4j:slf4j-api"
194+
versions: [ "[1,)" ]
195+
176196
- package-ecosystem: github-actions
177197
directory: "/"
178198
schedule:

0 commit comments

Comments
 (0)