File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,8 @@ dependencies {
36
36
37
37
apply from : ' gradle/build.values.gradle'
38
38
39
- if (gradle. startParameter. taskNames. contains(' uploadArchives' )) {
40
- apply from : ' gradle/build.publish.gradle'
41
- }
39
+ apply from : ' gradle/build.publish.gradle'
40
+
42
41
android. libraryVariants. all { variant ->
43
42
def name = variant. name
44
43
task " javadoc-$name " (type : Javadoc ) {
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ artifacts {
29
29
archives androidJavadocsJar
30
30
}
31
31
32
+ if (! gradle. startParameter. taskNames. contains(' uploadArchives' )) {
33
+ return
34
+ }
35
+
32
36
// gradle --daemon option makes System.console() null.
33
37
// you must turn --daemon off when executing uploadArchives.
34
38
def requireInput = { message ->
You can’t perform that action at this time.
0 commit comments