diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-09-05 14:41:19 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-09-05 14:41:19 +0000 |
commit | 4e7753f06528811f953fdbf6d6dcf0e39c99da84 (patch) | |
tree | 4c7fd25b297774b2a36c5b7ac6caee92428f9e28 /poi-ooxml/build.gradle | |
parent | bd9a10a1536fee1a65553aea61545dd0d36ac161 (diff) | |
download | poi-4e7753f06528811f953fdbf6d6dcf0e39c99da84.tar.gz poi-4e7753f06528811f953fdbf6d6dcf0e39c99da84.zip |
still hacking the build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/build.gradle')
-rw-r--r-- | poi-ooxml/build.gradle | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index d769d3f4ff..55ba4d6b25 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -245,6 +245,18 @@ publishing { pom { name = 'Apache POI - API based on OPC and OOXML schemas' description = 'Apache POI - Java API To Access Microsoft Format Files' + + withXml { + // Update dependencies with resolved versions + def hasDependencies = !asNode().dependencies.isEmpty() + if (hasDependencies) { + asNode().dependencies.first().each { + String artifactId = it.get("artifactId").first().value().first() + String modifiedName = artifactId.equals("poi-ooxml-full") ? "poi-ooxml-lite" : artifactId + it.get("artifactId").first().value = modifiedName + } + } + } } } } |