Merge pull request #3 from galderz/t_add_source_jar
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Thu, 4 Mar 2021 15:23:05 +0000 (07:23 -0800)
committerGitHub <noreply@github.com>
Thu, 4 Mar 2021 15:23:05 +0000 (07:23 -0800)
Produce java source jars

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>