File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ 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
+ # Task list to discover all tasks and their dependencies since
15
+ # just running the suggested 'help' task isn't sufficient.
14
16
GRADLE_TASKS=(
15
17
" assemble"
16
18
" compileDebugUnitTestKotlin"
@@ -35,6 +37,12 @@ echo ""
35
37
36
38
echo " Removing old components..."
37
39
sed -i ' /<components>/,/<\/components>/d' ../gradle/verification-metadata.xml
40
+ echo " "
38
41
39
42
echo " Generating new components..."
40
- ../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