Browse Source

Merge pull request #13 from csmith/master

Create source and javadoc artifacts.
pull/14/head
Greg Holmes 9 years ago
parent
commit
e95364170f
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      build.gradle

+ 14
- 0
build.gradle View File

@@ -63,6 +63,20 @@ subprojects {
63 63
 
64 64
     task publishSnapshot(dependsOn: ['getCredentials', 'publishMavenJavaPublicationToSnapshotsRepository']) << {
65 65
     }
66
+
67
+    task javadocJar(type: Jar) {
68
+        classifier = 'javadoc'
69
+        from javadoc
70
+    }
71
+
72
+    task sourcesJar(type: Jar) {
73
+        classifier = 'sources'
74
+        from sourceSets.main.allSource
75
+    }
76
+
77
+    artifacts {
78
+        archives javadocJar, sourcesJar
79
+    }
66 80
 }
67 81
 
68 82
 task wrapper(type: Wrapper) {

Loading…
Cancel
Save