Permalink
Browse files

Voodoo magic to get a source JAR installed along with the artifact JAR

  • Loading branch information...
1 parent f72e8e3 commit c4e0533436f7afabd72a9bae74ed2e9e4487e389 @hlship committed Nov 4, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 build.gradle
View
@@ -39,4 +39,13 @@ subprojects {
options.suites("src/test/conf/testng.xml")
}
+
+ task sourcesJar(type: Jar, dependsOn:classes) {
+ classifier = 'sources'
+ from sourceSets.main.allSource
+ }
+
+ artifacts {
+ archives sourcesJar
+ }
}

0 comments on commit c4e0533

Please sign in to comment.