Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

build(sdk-java): ship the license inside the jar

Yudhi Armyndharisa45d36c70443
diff --git a/sdk/java/pom.xml b/sdk/java/pom.xml
index eb1fcf303..b5393429d 100644
--- a/sdk/java/pom.xml
+++ b/sdk/java/pom.xml
@@ -52,6 +52,16 @@
</dependencies>
<build>
+ <resources>
+ <!-- The license text travels inside the jar and the sources jar. -->
+ <resource>
+ <directory>${project.basedir}</directory>
+ <includes>
+ <include>LICENSE</include>
+ </includes>
+ <targetPath>META-INF</targetPath>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>