Skip to content

Commit 7cfae94

Browse files
committed
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
1 parent 1d2ebde commit 7cfae94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gradle/publications.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ publishing {
3636
url = "https://github.com/spring-projects/spring-framework/issues"
3737
}
3838
}
39+
versionMapping {
40+
usage('java-api') {
41+
fromResolutionResult()
42+
}
43+
usage('java-runtime') {
44+
fromResolutionResult()
45+
}
46+
}
3947
}
4048
}
4149
}

0 commit comments

Comments
 (0)