Skip to content

Commit b8b27f2

Browse files
dsmileyCopilot
andcommitted
SOLR-18185: POMs: publish resolved version (#4256)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d033e60 commit b8b27f2

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: Published POMs now include resolved dependency versions, fixing ambiguous/missing version problems.
2+
type: fixed
3+
authors:
4+
- name: David Smiley
5+
links:
6+
- name: SOLR-18185
7+
url: https://issues.apache.org/jira/browse/SOLR-18185

gradle/maven/defaults-maven.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ configure(subprojects.findAll {it.path in rootProject.published}) {prj ->
149149

150150
pom(configurePom)
151151

152+
// Publish resolved/locked dependency versions instead of declared catalog versions
153+
versionMapping {
154+
usage('java-api') { fromResolutionOf('runtimeClasspath') }
155+
usage('java-runtime') { fromResolutionResult() }
156+
}
157+
152158
// Remove the internal :platform dependency from dependencyManagement in POMs
153159
pom.withXml {
154160
def root = asNode()

0 commit comments

Comments
 (0)