Skip to content

Commit 74cf647

Browse files
authored
Add version constraint for jackson-dataformat-yaml (#7970)
The geode-core module declares jackson-dataformat-yaml as a dependency without specifying a version, relying on DependencyConstraints.groovy to provide it. However, DependencyConstraints.groovy was missing the version constraint for com.fasterxml.jackson.dataformat.* artifacts. This caused the published geode-core-2.0.0.pom to have jackson-dataformat-yaml with no <version> tag, making the POM invalid according to Maven specification. Maven refuses to process ANY transitive dependencies from an invalid POM, which caused all dependencies (antlr, jopt-simple, micrometer-core, shiro-core, jakarta.transaction-api, geode-management, geode-deployment-legacy, rmiio) to not be pulled transitively. This fix adds the missing dependency constraint for jackson-dataformat-yaml, using jackson.version (2.17.0) to match other Jackson artifacts. Issue reported by Leon during 2.0.0.RC2 testing.
1 parent 64fe780 commit 74cf647

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build-tools/geode-dependency-management/src/main/groovy/org/apache/geode/gradle/plugins/DependencyConstraints.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ class DependencyConstraints {
232232
entry('jackson-datatype-jsr310')
233233
}
234234

235+
dependencySet(group: 'com.fasterxml.jackson.dataformat', version: get('jackson.version')) {
236+
entry('jackson-dataformat-yaml')
237+
}
238+
235239
dependencySet(group: 'com.jayway.jsonpath', version: '2.7.0') {
236240
entry('json-path-assert')
237241
entry('json-path')

0 commit comments

Comments
 (0)