Include JGit sources when building GWT code
By adding the source JAR onto our provided classpath the compiler can
find sources, permitting the use of some JGit code from within GWT,
but we don't package it into our WAR file, so it saves some space.
Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/pom.xml b/pom.xml
index 0e3d8e7..fb19e93 100644
--- a/pom.xml
+++ b/pom.xml
@@ -253,6 +253,7 @@
</licenses>
<properties>
+ <jgitVersion>0.4.0-310-g3da8761</jgitVersion>
<gwtVersion>1.5.3</gwtVersion>
<gwtStyle>OBF</gwtStyle>
</properties>
@@ -514,9 +515,17 @@
<dependency>
<groupId>org.spearce</groupId>
<artifactId>jgit</artifactId>
- <version>0.4.0-310-g3da8761</version>
+ <version>${jgitVersion}</version>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>org.spearce</groupId>
+ <artifactId>jgit</artifactId>
+ <version>${jgitVersion}</version>
+ <classifier>sources</classifier>
+ <scope>provided</scope>
+ <type>jar</type>
+ </dependency>
<dependency>
<groupId>postgresql</groupId>