Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now creating source and javadoc jar files

  • Loading branch information...
commit f01ceaabb1144174523d111f4613d7e13f5fdb53 1 parent 7d0dc76
@graemerocher graemerocher authored
Showing with 17 additions and 1 deletion.
  1. +17 −1 build.gradle
View
18 build.gradle
@@ -135,7 +135,23 @@ subprojects { project ->
test {
excludes = ["**/*TestCase.class", "**/*\$*.class"]
}
-
+
+ task sourcesJar(type: Jar, dependsOn:classes) {
+ classifier = 'sources'
+ appendix = project.name[7..-1]
+ from sourceSets.main.allSource
+ }
+
+ task javadocJar(type: Jar, dependsOn:javadoc) {
+ classifier = 'javadoc'
+ appendix = project.name[7..-1]
+ from javadoc.destinationDir
+ }
+
+ artifacts {
+ archives sourcesJar
+ archives javadocJar
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.