Use resolved dependency versions for published POMs

This commit ensures that Gradle publications are using resolved
dependency versions for Maven publications (i.e. POMs). This is useful
since we're using the Spring dependency management plugin and we can't
rely on declared dependency versions only.

See gh-23282
This commit is contained in:
Brian Clozel
2019-08-22 16:11:09 +02:00
parent 1d2ebdeb8c
commit 7cfae94d70

View File

@@ -36,6 +36,14 @@ publishing {
url = "https://github.com/spring-projects/spring-framework/issues"
}
}
versionMapping {
usage('java-api') {
fromResolutionResult()
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
}