diff --git a/doc/changes/changes_4.3.1.md b/doc/changes/changes_4.3.1.md
index 060fbe7f..026984d8 100644
--- a/doc/changes/changes_4.3.1.md
+++ b/doc/changes/changes_4.3.1.md
@@ -12,6 +12,7 @@ This release fixes vulnerability CVE-2024-31573 in `org.xmlunit:xmlunit-core:jar
## Bugfixes
+* #571: Fixed failing version increment during dependency update
* #567: Increased timeout for installing go-licenses
## Dependency Updates
diff --git a/parent-pom/pom.xml b/parent-pom/pom.xml
index 7958df57..5ca2a132 100644
--- a/parent-pom/pom.xml
+++ b/parent-pom/pom.xml
@@ -111,7 +111,7 @@
org.eclipse.jgit
org.eclipse.jgit
-
+
6.7.0.202309050840-r
@@ -292,8 +292,8 @@
org.slf4j:slf4j-jdk14:jar:*:*
-
- org.eclipse.jgit:org.eclipse.jgit:jar:*:6.8.0.202311291450-r
+
+ org.eclipse.jgit:org.eclipse.jgit:jar:*:*
diff --git a/project-keeper/src/main/java/com/exasol/projectkeeper/dependencyupdate/ProjectVersionIncrementor.java b/project-keeper/src/main/java/com/exasol/projectkeeper/dependencyupdate/ProjectVersionIncrementor.java
index 8fa982df..d0a92fae 100644
--- a/project-keeper/src/main/java/com/exasol/projectkeeper/dependencyupdate/ProjectVersionIncrementor.java
+++ b/project-keeper/src/main/java/com/exasol/projectkeeper/dependencyupdate/ProjectVersionIncrementor.java
@@ -6,13 +6,14 @@
import java.time.*;
import java.util.Objects;
import java.util.Optional;
+import java.util.stream.Stream;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import com.exasol.errorreporting.ExaError;
import com.exasol.projectkeeper.Logger;
-import com.exasol.projectkeeper.shared.config.ProjectKeeperConfig;
+import com.exasol.projectkeeper.shared.config.*;
import com.exasol.projectkeeper.sources.analyze.generic.*;
import com.exasol.projectkeeper.validators.changesfile.ChangesFile;
import com.exasol.projectkeeper.validators.changesfile.ChangesFileIO;
@@ -88,9 +89,7 @@ private LocalDate today() {
String incrementProjectVersion() {
final String nextVersion = getIncrementedVersion(currentProjectVersion);
updatePomVersion(nextVersion);
- if (usesReferenceCheckerPlugin()) {
- updateReferences();
- }
+ sourcesUsingReferenceCheckerPlugin().forEach(this::updateReferences);
return nextVersion;
}
@@ -102,14 +101,15 @@ private void updatePomVersion(final String nextVersion) {
xmlFileIO.write(pom, path);
}
- private boolean usesReferenceCheckerPlugin() {
- return config.getSources().stream().anyMatch(source -> source.getModules().contains(JAR_ARTIFACT));
+ private Stream