dorongold / gradle-task-tree

Gradle plugin that adds a 'taskTree' task that prints task dependency tree
Apache License 2.0
857 stars 56 forks source link

finalizeBy tasks are not displayed in a tree #20

Open OleksandrKucherenko opened 6 years ago

OleksandrKucherenko commented 6 years ago

command: ./gradlew assembleDebug taskTree --no-repeat

:app:preBuild SKIPPED
:modules:android-motionize-sdk:motionDNALib:preBuild SKIPPED
:modules:android-motionize-sdk:motionDNALib:preDebugBuild SKIPPED
:modules:android-motionize-sdk:motionDNALib:checkDebugManifest SKIPPED
:modules:android-motionize-sdk:motionDNALib:processDebugManifest SKIPPED
:app:preDebugBuild SKIPPED
:app:unMock SKIPPED
:modules:android-motionize-sdk:motionDNALib:unMock SKIPPED
:modules:android-motionize-sdk:motionDNALib:compileDebugAidl SKIPPED
:app:compileDebugAidl SKIPPED
:modules:android-motionize-sdk:motionDNALib:packageDebugRenderscript SKIPPED
:app:compileDebugRenderscript SKIPPED
:app:checkDebugManifest SKIPPED
:app:generateDebugBuildConfig SKIPPED
:app:prepareLintJar SKIPPED
:app:mergeDebugShaders SKIPPED
:app:compileDebugShaders SKIPPED
:app:generateDebugAssets SKIPPED
:modules:android-motionize-sdk:motionDNALib:mergeDebugShaders SKIPPED
:modules:android-motionize-sdk:motionDNALib:compileDebugShaders SKIPPED
:modules:android-motionize-sdk:motionDNALib:generateDebugAssets SKIPPED
:modules:android-motionize-sdk:motionDNALib:mergeDebugAssets SKIPPED
:app:mergeDebugAssets SKIPPED
:app:processDebugGoogleServices SKIPPED
:app:createDebugCompatibleScreenManifests SKIPPED
:app:processDebugManifest SKIPPED
:app:fabricGenerateResourcesDebug SKIPPED
:app:generateDebugResValues SKIPPED
:app:generateDebugResources SKIPPED
:modules:android-motionize-sdk:motionDNALib:compileDebugRenderscript SKIPPED
:modules:android-motionize-sdk:motionDNALib:generateDebugResValues SKIPPED
:modules:android-motionize-sdk:motionDNALib:generateDebugResources SKIPPED
:modules:android-motionize-sdk:motionDNALib:packageDebugResources SKIPPED
:app:mergeDebugResources SKIPPED
:app:splitsDiscoveryTaskDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:platformAttrExtractor SKIPPED
:modules:android-motionize-sdk:motionDNALib:processDebugResources SKIPPED
:app:processDebugResources SKIPPED
:app:generateDebugSources SKIPPED
:modules:android-motionize-sdk:motionDNALib:generateDebugBuildConfig SKIPPED
:modules:android-motionize-sdk:motionDNALib:prepareLintJar SKIPPED
:modules:android-motionize-sdk:motionDNALib:generateDebugSources SKIPPED
:modules:android-motionize-sdk:motionDNALib:javaPreCompileDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:compileDebugJavaWithJavac SKIPPED
:modules:android-motionize-sdk:motionDNALib:processDebugJavaRes SKIPPED
:modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug SKIPPED
:modules:autoproxy:autoproxy-annotations:compileJava SKIPPED
:modules:autoproxy:autoproxy-annotations:processResources SKIPPED
:modules:autoproxy:autoproxy-annotations:classes SKIPPED
:modules:autoproxy:autoproxy-annotations:jar SKIPPED
:modules:autoproxy:autoproxy-rx-annotations:compileJava SKIPPED
:modules:autoproxy:autoproxy-rx-annotations:processResources SKIPPED
:modules:autoproxy:autoproxy-rx-annotations:classes SKIPPED
:modules:autoproxy:autoproxy-rx-annotations:jar SKIPPED
:modules:autoproxy:autoproxy-generators:compileJava SKIPPED
:modules:autoproxy:autoproxy-generators:processResources SKIPPED
:modules:autoproxy:autoproxy-generators:classes SKIPPED
:modules:autoproxy:autoproxy-generators:jar SKIPPED
:modules:autoproxy:autoproxy-rx-generators:compileJava SKIPPED
:modules:autoproxy:autoproxy-rx-generators:processResources SKIPPED
:modules:autoproxy:autoproxy-rx-generators:classes SKIPPED
:modules:autoproxy:autoproxy-rx-generators:jar SKIPPED
:app:dataBindingExportBuildInfoDebug SKIPPED
:modules:autoproxy:autoproxy-processor:compileJava SKIPPED
:modules:autoproxy:autoproxy-processor:processResources SKIPPED
:modules:autoproxy:autoproxy-processor:classes SKIPPED
:modules:autoproxy:autoproxy-processor:jar SKIPPED
:app:javaPreCompileDebug SKIPPED
:app:transformDataBindingWithDataBindingMergeArtifactsForDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:createFullJarDebug SKIPPED
:app:compileDebugJavaWithJavac SKIPPED
:app:compileDebugNdk SKIPPED
:app:compileDebugSources SKIPPED
:app:extractTryWithResourcesSupportJarDebug SKIPPED
:app:transformClassesWithJacocoForDebug SKIPPED
:app:transformClassesWithStackFramesFixerForDebug SKIPPED
:app:transformClassesWithDesugarForDebug SKIPPED
:app:transformClassesWithDexBuilderForDebug SKIPPED
:app:transformClassesWithMultidexlistForDebug SKIPPED
:app:transformDexArchiveWithDexMergerForDebug SKIPPED
:app:mergeDebugJniLibFolders SKIPPED
:modules:android-motionize-sdk:motionDNALib:compileDebugNdk SKIPPED
:modules:android-motionize-sdk:motionDNALib:mergeDebugJniLibFolders SKIPPED
:modules:android-motionize-sdk:motionDNALib:transformNativeLibsWithMergeJniLibsForDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:transformNativeLibsWithIntermediateJniLibsForDebug SKIPPED
:app:transformNativeLibsWithMergeJniLibsForDebug SKIPPED
:app:processDebugJavaRes SKIPPED
:app:transformResourcesWithMergeJavaResForDebug SKIPPED
:app:validateSigningDebug SKIPPED
:app:packageDebug SKIPPED
:app:assembleDebug SKIPPED
:app:copyApkDebug SKIPPED
:app:countDebugDexMethods SKIPPED
:modules:android-motionize-sdk:motionDNALib:extractDebugAnnotations SKIPPED
:modules:android-motionize-sdk:motionDNALib:mergeDebugConsumerProguardFiles SKIPPED
:modules:android-motionize-sdk:motionDNALib:transformResourcesWithMergeJavaResForDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithSyncLibJarsForDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:transformNativeLibsWithSyncJniLibsForDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:bundleDebug SKIPPED
:modules:android-motionize-sdk:motionDNALib:compileDebugSources SKIPPED
:modules:android-motionize-sdk:motionDNALib:assembleDebug SKIPPED
:taskTree

Output:

:app:assembleDebug
+--- :app:compileDebugSources
|    +--- :app:compileDebugJavaWithJavac
|    |    +--- :app:compileDebugAidl
|    |    |    +--- :app:preDebugBuild
|    |    |    |    +--- :app:preBuild
|    |    |    |    \--- :modules:android-motionize-sdk:motionDNALib:processDebugManifest
|    |    |    |         \--- :modules:android-motionize-sdk:motionDNALib:checkDebugManifest
|    |    |    |              \--- :modules:android-motionize-sdk:motionDNALib:preDebugBuild
|    |    |    |                   \--- :modules:android-motionize-sdk:motionDNALib:preBuild
|    |    |    +--- :app:unMock
|    |    |    \--- :modules:android-motionize-sdk:motionDNALib:compileDebugAidl
|    |    |         +--- :modules:android-motionize-sdk:motionDNALib:preDebugBuild *
|    |    |         \--- :modules:android-motionize-sdk:motionDNALib:unMock
|    |    +--- :app:compileDebugRenderscript
|    |    |    +--- :app:preDebugBuild *
|    |    |    +--- :app:unMock *
|    |    |    \--- :modules:android-motionize-sdk:motionDNALib:packageDebugRenderscript
|    |    +--- :app:dataBindingExportBuildInfoDebug
|    |    |    +--- :app:compileDebugAidl *
|    |    |    +--- :app:compileDebugRenderscript *
|    |    |    +--- :app:generateDebugBuildConfig
|    |    |    |    \--- :app:checkDebugManifest
|    |    |    |         \--- :app:preDebugBuild *
|    |    |    +--- :app:generateDebugSources
|    |    |    |    +--- :app:compileDebugAidl *
|    |    |    |    +--- :app:compileDebugRenderscript *
|    |    |    |    +--- :app:generateDebugBuildConfig *
|    |    |    |    +--- :app:prepareLintJar
|    |    |    |    \--- :app:processDebugResources
|    |    |    |         +--- :app:mergeDebugResources
|    |    |    |         |    +--- :app:fabricGenerateResourcesDebug
|    |    |    |         |    |    +--- :app:mergeDebugAssets
|    |    |    |         |    |    |    +--- :app:generateDebugAssets
|    |    |    |         |    |    |    |    \--- :app:compileDebugShaders
|    |    |    |         |    |    |    |         +--- :app:mergeDebugShaders
|    |    |    |         |    |    |    |         \--- :app:unMock *
|    |    |    |         |    |    |    \--- :modules:android-motionize-sdk:motionDNALib:mergeDebugAssets
|    |    |    |         |    |    |         \--- :modules:android-motionize-sdk:motionDNALib:generateDebugAssets
|    |    |    |         |    |    |              \--- :modules:android-motionize-sdk:motionDNALib:compileDebugShaders
|    |    |    |         |    |    |                   +--- :modules:android-motionize-sdk:motionDNALib:mergeDebugShaders
|    |    |    |         |    |    |                   \--- :modules:android-motionize-sdk:motionDNALib:unMock *
|    |    |    |         |    |    +--- :app:processDebugGoogleServices
|    |    |    |         |    |    \--- :app:processDebugManifest
|    |    |    |         |    |         +--- :app:checkDebugManifest *
|    |    |    |         |    |         +--- :app:createDebugCompatibleScreenManifests
|    |    |    |         |    |         \--- :modules:android-motionize-sdk:motionDNALib:processDebugManifest *
|    |    |    |         |    +--- :app:generateDebugResources
|    |    |    |         |    |    +--- :app:compileDebugRenderscript *
|    |    |    |         |    |    \--- :app:generateDebugResValues
|    |    |    |         |    +--- :app:processDebugGoogleServices *
|    |    |    |         |    \--- :modules:android-motionize-sdk:motionDNALib:packageDebugResources
|    |    |    |         |         \--- :modules:android-motionize-sdk:motionDNALib:generateDebugResources
|    |    |    |         |              +--- :modules:android-motionize-sdk:motionDNALib:compileDebugRenderscript
|    |    |    |         |              |    +--- :modules:android-motionize-sdk:motionDNALib:preDebugBuild *
|    |    |    |         |              |    \--- :modules:android-motionize-sdk:motionDNALib:unMock *
|    |    |    |         |              \--- :modules:android-motionize-sdk:motionDNALib:generateDebugResValues
|    |    |    |         +--- :app:processDebugManifest *
|    |    |    |         +--- :app:splitsDiscoveryTaskDebug
|    |    |    |         \--- :modules:android-motionize-sdk:motionDNALib:processDebugResources
|    |    |    |              +--- :modules:android-motionize-sdk:motionDNALib:packageDebugResources *
|    |    |    |              +--- :modules:android-motionize-sdk:motionDNALib:platformAttrExtractor
|    |    |    |              \--- :modules:android-motionize-sdk:motionDNALib:processDebugManifest *
|    |    |    +--- :app:mergeDebugResources *
|    |    |    +--- :app:processDebugResources *
|    |    |    +--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
|    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:compileDebugJavaWithJavac
|    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:compileDebugAidl *
|    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:compileDebugRenderscript *
|    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:generateDebugBuildConfig
|    |    |    |    |    |    \--- :modules:android-motionize-sdk:motionDNALib:checkDebugManifest *
|    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:generateDebugSources
|    |    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:compileDebugAidl *
|    |    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:compileDebugRenderscript *
|    |    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:generateDebugBuildConfig *
|    |    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:prepareLintJar
|    |    |    |    |    |    \--- :modules:android-motionize-sdk:motionDNALib:processDebugResources *
|    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:javaPreCompileDebug
|    |    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:preDebugBuild *
|    |    |    |    |    |    \--- :modules:android-motionize-sdk:motionDNALib:unMock *
|    |    |    |    |    +--- :modules:android-motionize-sdk:motionDNALib:processDebugResources *
|    |    |    |    |    \--- :modules:android-motionize-sdk:motionDNALib:unMock *
|    |    |    |    \--- :modules:android-motionize-sdk:motionDNALib:processDebugJavaRes
|    |    |    |         \--- :modules:android-motionize-sdk:motionDNALib:preDebugBuild *
|    |    |    +--- :modules:autoproxy:autoproxy-annotations:jar
|    |    |    |    \--- :modules:autoproxy:autoproxy-annotations:classes
|    |    |    |         +--- :modules:autoproxy:autoproxy-annotations:compileJava
|    |    |    |         \--- :modules:autoproxy:autoproxy-annotations:processResources
|    |    |    +--- :modules:autoproxy:autoproxy-rx-annotations:jar
|    |    |    |    \--- :modules:autoproxy:autoproxy-rx-annotations:classes
|    |    |    |         +--- :modules:autoproxy:autoproxy-rx-annotations:compileJava
|    |    |    |         \--- :modules:autoproxy:autoproxy-rx-annotations:processResources
|    |    |    \--- :modules:autoproxy:autoproxy-rx-generators:jar
|    |    |         \--- :modules:autoproxy:autoproxy-rx-generators:classes
|    |    |              +--- :modules:autoproxy:autoproxy-rx-generators:compileJava
|    |    |              |    +--- :modules:autoproxy:autoproxy-annotations:jar *
|    |    |              |    +--- :modules:autoproxy:autoproxy-generators:jar
|    |    |              |    |    \--- :modules:autoproxy:autoproxy-generators:classes
|    |    |              |    |         +--- :modules:autoproxy:autoproxy-generators:compileJava
|    |    |              |    |         |    \--- :modules:autoproxy:autoproxy-annotations:jar *
|    |    |              |    |         \--- :modules:autoproxy:autoproxy-generators:processResources
|    |    |              |    \--- :modules:autoproxy:autoproxy-rx-annotations:jar *
|    |    |              \--- :modules:autoproxy:autoproxy-rx-generators:processResources
|    |    +--- :app:generateDebugBuildConfig *
|    |    +--- :app:generateDebugSources *
|    |    +--- :app:javaPreCompileDebug
|    |    |    +--- :app:preDebugBuild *
|    |    |    +--- :app:unMock *
|    |    |    +--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug *
|    |    |    +--- :modules:autoproxy:autoproxy-annotations:jar *
|    |    |    +--- :modules:autoproxy:autoproxy-generators:jar *
|    |    |    +--- :modules:autoproxy:autoproxy-processor:jar
|    |    |    |    \--- :modules:autoproxy:autoproxy-processor:classes
|    |    |    |         +--- :modules:autoproxy:autoproxy-processor:compileJava
|    |    |    |         |    +--- :modules:autoproxy:autoproxy-annotations:jar *
|    |    |    |         |    \--- :modules:autoproxy:autoproxy-generators:jar *
|    |    |    |         \--- :modules:autoproxy:autoproxy-processor:processResources
|    |    |    +--- :modules:autoproxy:autoproxy-rx-annotations:jar *
|    |    |    \--- :modules:autoproxy:autoproxy-rx-generators:jar *
|    |    +--- :app:processDebugResources *
|    |    +--- :app:transformDataBindingWithDataBindingMergeArtifactsForDebug
|    |    +--- :app:unMock *
|    |    +--- :modules:android-motionize-sdk:motionDNALib:createFullJarDebug
|    |    |    \--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug *
|    |    +--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug *
|    |    +--- :modules:autoproxy:autoproxy-annotations:jar *
|    |    +--- :modules:autoproxy:autoproxy-generators:jar *
|    |    +--- :modules:autoproxy:autoproxy-processor:jar *
|    |    +--- :modules:autoproxy:autoproxy-rx-annotations:jar *
|    |    \--- :modules:autoproxy:autoproxy-rx-generators:jar *
|    +--- :app:compileDebugNdk
|    |    +--- :app:preDebugBuild *
|    |    \--- :app:unMock *
|    \--- :app:unMock *
\--- :app:packageDebug
     +--- :app:compileDebugJavaWithJavac *
     +--- :app:mergeDebugAssets *
     +--- :app:processDebugManifest *
     +--- :app:processDebugResources *
     +--- :app:transformDexArchiveWithDexMergerForDebug
     |    +--- :app:transformClassesWithDexBuilderForDebug
     |    |    +--- :app:extractTryWithResourcesSupportJarDebug
     |    |    \--- :app:transformClassesWithDesugarForDebug
     |    |         +--- :app:transformClassesWithJacocoForDebug
     |    |         |    \--- :app:compileDebugJavaWithJavac *
     |    |         +--- :app:transformClassesWithStackFramesFixerForDebug
     |    |         |    +--- :app:transformClassesWithJacocoForDebug *
     |    |         |    +--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug *
     |    |         |    +--- :modules:autoproxy:autoproxy-annotations:jar *
     |    |         |    +--- :modules:autoproxy:autoproxy-rx-annotations:jar *
     |    |         |    \--- :modules:autoproxy:autoproxy-rx-generators:jar *
     |    |         +--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug *
     |    |         +--- :modules:autoproxy:autoproxy-annotations:jar *
     |    |         +--- :modules:autoproxy:autoproxy-rx-annotations:jar *
     |    |         \--- :modules:autoproxy:autoproxy-rx-generators:jar *
     |    \--- :app:transformClassesWithMultidexlistForDebug
     |         +--- :app:extractTryWithResourcesSupportJarDebug *
     |         \--- :app:transformClassesWithDesugarForDebug *
     +--- :app:transformNativeLibsWithMergeJniLibsForDebug
     |    +--- :app:compileDebugNdk *
     |    +--- :app:compileDebugRenderscript *
     |    +--- :app:mergeDebugJniLibFolders
     |    |    \--- :app:generateDebugAssets *
     |    +--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug *
     |    \--- :modules:android-motionize-sdk:motionDNALib:transformNativeLibsWithIntermediateJniLibsForDebug
     |         \--- :modules:android-motionize-sdk:motionDNALib:transformNativeLibsWithMergeJniLibsForDebug
     |              +--- :modules:android-motionize-sdk:motionDNALib:compileDebugNdk
     |              |    +--- :modules:android-motionize-sdk:motionDNALib:preDebugBuild *
     |              |    \--- :modules:android-motionize-sdk:motionDNALib:unMock *
     |              \--- :modules:android-motionize-sdk:motionDNALib:mergeDebugJniLibFolders
     |                   \--- :modules:android-motionize-sdk:motionDNALib:generateDebugAssets *
     +--- :app:transformResourcesWithMergeJavaResForDebug
     |    +--- :app:compileDebugJavaWithJavac *
     |    +--- :app:processDebugJavaRes
     |    |    \--- :app:preDebugBuild *
     |    \--- :modules:android-motionize-sdk:motionDNALib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug *
     \--- :app:validateSigningDebug

Expected: copyApkDebug will be displayed in Tree

OleksandrKucherenko commented 6 years ago
                // create a copy of APK with a default name for SPOON plugin
                def taskName = "copyApk${flavorName}${buildType.capitalize()}"

                project.task(taskName, type: Copy) {
                    description = "Make copy of APK with a default name for making SPOON plugin happy"
                    group = "workaround"

                    from output.outputFile.absolutePath
                    into "${file.parent}"
                    rename '.*\\.apk', "${file.name}"
                }

                tasks.matching { it.name.equalsIgnoreCase("assemble${flavorName}${buildType}") }.each {
                    it.finalizedBy taskName
                }

declaration of task

grv87 commented 6 years ago

This plugin is wonderful. Except this one feature is missing. +1 for this