You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/09/05 14:41:19 UTC

svn commit: r1892940 - /poi/trunk/poi-ooxml/build.gradle

Author: fanningpj
Date: Sun Sep  5 14:41:19 2021
New Revision: 1892940

URL: http://svn.apache.org/viewvc?rev=1892940&view=rev
Log:
still hacking the build

Modified:
    poi/trunk/poi-ooxml/build.gradle

Modified: poi/trunk/poi-ooxml/build.gradle
URL: http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/build.gradle?rev=1892940&r1=1892939&r2=1892940&view=diff
==============================================================================
--- poi/trunk/poi-ooxml/build.gradle (original)
+++ poi/trunk/poi-ooxml/build.gradle Sun Sep  5 14:41:19 2021
@@ -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
+                        }
+                    }
+                }
             }
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org