File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,14 @@ GRADLE_OPTS="-Dorg.gradle.daemon=false"
11
11
# We must provide a template for mktemp to work properly on macOS.
12
12
GRADLE_USER_HOME=$( mktemp -d -t gradle-home-XXX)
13
13
TEMP_GRADLE_PROJECT_CACHE_DIR=$( mktemp -d -t gradle-cache-XXX)
14
- GRADLE_TASKS=(" assemble" " compileDebugUnitTestKotlin" " assembleAndroidTest" " lint" )
14
+ # Task list to discover all tasks and their dependencies since
15
+ # just running the suggested 'help' task isn't sufficient.
16
+ GRADLE_TASKS=(
17
+ " assemble"
18
+ " compileDebugUnitTestKotlin"
19
+ " assembleAndroidTest"
20
+ " lint"
21
+ )
15
22
16
23
export GRADLE_OPTS
17
24
export GRADLE_USER_HOME
@@ -30,6 +37,12 @@ echo ""
30
37
31
38
echo " Removing old components..."
32
39
sed -i ' /<components>/,/<\/components>/d' ../gradle/verification-metadata.xml
40
+ echo " "
33
41
34
42
echo " Generating new components..."
35
- ../gradlew -q -p .. --project-cache-dir " $TEMP_GRADLE_PROJECT_CACHE_DIR " -M sha256 " ${GRADLE_TASKS[@]} "
43
+ # Using a loop here since providing all tasks at once result in gradle task dependency issues.
44
+ for GRADLE_TASK in " ${GRADLE_TASKS[@]} " ; do
45
+ echo " Gradle task: $GRADLE_TASK "
46
+ ../gradlew -q -p .. --project-cache-dir " $TEMP_GRADLE_PROJECT_CACHE_DIR " -M sha256 " $GRADLE_TASK "
47
+ echo " "
48
+ done
You can’t perform that action at this time.
0 commit comments