Skip to content

Commit 067ecb0

Browse files
committed
Make tasks to generate jar out of uploadArchives
so as to debug without access to the sonatype server
1 parent 29dd658 commit 067ecb0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

StudyplusAndroidSDK/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ dependencies {
3636

3737
apply from: 'gradle/build.values.gradle'
3838

39-
if (gradle.startParameter.taskNames.contains('uploadArchives')) {
40-
apply from: 'gradle/build.publish.gradle'
41-
}
39+
apply from: 'gradle/build.publish.gradle'
40+
4241
android.libraryVariants.all { variant ->
4342
def name = variant.name
4443
task "javadoc-$name"(type: Javadoc) {

StudyplusAndroidSDK/gradle/build.publish.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ artifacts {
2929
archives androidJavadocsJar
3030
}
3131

32+
if (!gradle.startParameter.taskNames.contains('uploadArchives')) {
33+
return
34+
}
35+
3236
// gradle --daemon option makes System.console() null.
3337
// you must turn --daemon off when executing uploadArchives.
3438
def requireInput = { message ->

0 commit comments

Comments
 (0)