]> git.bitcoin.ninja Git - ldk-java/commitdiff
Produce java source jars
authorGalder Zamarreño <galder@redhat.com>
Thu, 4 Mar 2021 08:06:31 +0000 (09:06 +0100)
committerGalder Zamarreño <galder@redhat.com>
Thu, 4 Mar 2021 08:06:31 +0000 (09:06 +0100)
pom.xml

diff --git a/pom.xml b/pom.xml
index 2714b48a21b03bb65c6f3c7f8a98486d79688bd6..ce7857d862fcc4be9c3af1a61de6d6a93f125a6e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <properties>
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
+        <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
     </properties>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <version>${maven-source-plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>