Skip to content

Commit 22bba94

Browse files
committed
up
1 parent d3c9b0c commit 22bba94

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,19 @@ allprojects {
3737
targetCompatibility = 1.7
3838
}
3939

40-
task packageSources(type: Jar, dependsOn: 'classes') {
41-
from sourceSets.main.allSource
40+
41+
42+
task sourcesJar(type: Jar, dependsOn: classes) {
4243
classifier = 'sources'
44+
from sourceSets.main.allSource
45+
}
46+
47+
task javadocJar(type: Jar, dependsOn: javadoc) {
48+
classifier = 'javadoc'
49+
from javadoc.destinationDir
4350
}
4451

45-
artifacts { archives packageSources }
52+
artifacts {
53+
archives sourcesJar
54+
archives javadocJar
55+
}

0 commit comments

Comments
 (0)