We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c9b0c commit 22bba94Copy full SHA for 22bba94
build.gradle
@@ -37,9 +37,19 @@ allprojects {
37
targetCompatibility = 1.7
38
}
39
40
-task packageSources(type: Jar, dependsOn: 'classes') {
41
- from sourceSets.main.allSource
+
42
+task sourcesJar(type: Jar, dependsOn: classes) {
43
classifier = 'sources'
44
+ from sourceSets.main.allSource
45
+}
46
47
+task javadocJar(type: Jar, dependsOn: javadoc) {
48
+ classifier = 'javadoc'
49
+ from javadoc.destinationDir
50
51
-artifacts { archives packageSources }
52
+artifacts {
53
+ archives sourcesJar
54
+ archives javadocJar
55
0 commit comments