]> source.dussan.org Git - poi.git/commitdiff
still hacking the build
authorPJ Fanning <fanningpj@apache.org>
Sun, 5 Sep 2021 14:41:19 +0000 (14:41 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 5 Sep 2021 14:41:19 +0000 (14:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892940 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/build.gradle

index d769d3f4ffcf2a7498d8a87af9f08688bd8b56c1..55ba4d6b2586a00d406c755d2d8a463e076d22a4 100644 (file)
@@ -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
+                        }
+                    }
+                }
             }
         }
     }