File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,30 @@ subprojects { project ->
13
13
status = rootProject. status
14
14
15
15
task sourcesJar(type : Jar , dependsOn :classes) {
16
- classifier = ' sources'
17
16
from sourceSets. main. allSource
18
17
}
19
18
20
19
task javadocJar(type : Jar , dependsOn :javadoc) {
21
- classifier = ' javadoc'
22
20
from javadoc. destinationDir
23
21
}
24
22
25
- // Ensure output is on a new line
26
- javadoc. doFirst { println " " }
27
-
23
+ configurations. add(' sources' )
24
+ configurations. add(' javadoc' )
28
25
29
26
artifacts {
30
- archives sourcesJar
31
- archives javadocJar
27
+ sources(sourcesJar) {
28
+ type ' source'
29
+ classifier ' sources'
30
+ }
31
+ javadoc(javadocJar) {
32
+ type ' javadoc'
33
+ classifier ' javadoc'
34
+ }
32
35
}
36
+
37
+ // Ensure output is on a new line
38
+ javadoc. doFirst { println " " }
39
+
33
40
}
34
41
35
42
task aggregateJavadoc (type : Javadoc ) {
You can’t perform that action at this time.
0 commit comments