Add dummy profile to manage Disruptor 4 upgrades
diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
index 556b58c..ef6ffb1 100644
--- a/.github/dependabot.yaml
+++ b/.github/dependabot.yaml
@@ -81,9 +81,10 @@
# Json Unit 3.x requires Java 17
- dependency-name: "net.javacrumbs.json-unit:*"
versions: ["[3.0.0,)"]
- # LMAX Disruptor requires Java 11
+ # Update both `disruptor.version` to latest 3.x version
+ # and `disruptor4.version` to latest 4.x version
- dependency-name: "com.lmax:disruptor"
- versions: ["[4.0.0,)"]
+ update-types: ["version-update:semver-major"]
# WebCompere System Stubs requires Java 11
- dependency-name: "uk.org.webcompere:*"
versions: ["2.1.0,)"]
diff --git a/log4j-core-test/pom.xml b/log4j-core-test/pom.xml
index 241c594..6b7d038 100644
--- a/log4j-core-test/pom.xml
+++ b/log4j-core-test/pom.xml
@@ -452,6 +452,20 @@
</profile>
+ <!--
+ ~ Dummy profile to force Dependabot to upgrade `disruptor4.version`.
+ ~ Using this profile causes a compilation error.
+ -->
+ <profile>
+ <id>disruptor-4</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.lmax</groupId>
+ <artifactId>disruptor</artifactId>
+ <version>${disruptor4.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
</project>