Generate source distribution

Change-Id: I26063f97128596129f2d94552d331a81bf211315
diff --git a/pom.xml b/pom.xml
index a243d65..ffc088e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -102,6 +102,7 @@
                 <configuration>
                     <appendAssemblyId>true</appendAssemblyId>
                     <descriptors>
+                        <descriptor>src/assembly/src-distribution.xml</descriptor>
                         <descriptor>src/assembly/jar-distribution.xml</descriptor>
                         <descriptor>src/assembly/bin-distribution.xml</descriptor>
                     </descriptors>
diff --git a/src/assembly/src-distribution.xml b/src/assembly/src-distribution.xml
new file mode 100644
index 0000000..c50f5e1
--- /dev/null
+++ b/src/assembly/src-distribution.xml
@@ -0,0 +1,25 @@
+<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.1"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.1 https://maven.apache.org/xsd/assembly-2.1.1.xsd">
+    <id>src</id>
+    <formats>
+        <format>tar.xz</format>
+    </formats>
+    <fileSets>
+        <fileSet>
+            <directory>${project.basedir}</directory>
+            <includes>
+                <include>*.md</include>
+                <include>LICENSE*</include>
+                <include>NOTICE*</include>
+                <include>pom.xml</include>
+                <include>config.groovy</include>
+            </includes>
+            <useDefaultExcludes>true</useDefaultExcludes>
+        </fileSet>
+        <fileSet>
+            <directory>${project.basedir}/src</directory>
+            <useDefaultExcludes>true</useDefaultExcludes>
+        </fileSet>
+    </fileSets>
+</assembly>