Last active
September 26, 2023 16:08
-
-
Save handstandsam/191d42f997007dfe86b83a89d455d125 to your computer and use it in GitHub Desktop.
NOTE: Kinda works.... Print Inputs and Output Directories for All Tasks in Project. This filters out all inputs/outputs outside of the project, and only looks at the directories monitored.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val outputFile = File("output.txt") | |
if(outputFile.exists() { | |
outputFile.delete() | |
} | |
afterEvaluate { | |
project.tasks.forEach { task -> | |
buildString { | |
appendLine("---------------") | |
appendLine("${task.name}") | |
appendLine(" INPUTS") | |
task.inputs.files.groupBy { it.parentFile } | |
.keys | |
.filter { it.path.startsWith(rootProject.projectDir.path) } | |
.map { it.path.replaceFirst(rootProject.projectDir.path, "") } | |
.forEach { | |
appendLine(" $it") | |
} | |
appendLine(" OUTPUTS") | |
task.outputs.files.groupBy { it.parentFile } | |
.keys | |
.filter { it.path.startsWith(rootProject.projectDir.path) } | |
.map { it.path.replaceFirst(rootProject.projectDir.path, "") } | |
.forEach { | |
appendLine(" $it") | |
} | |
}.also { | |
println(it) | |
outputFile.appendText(it) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------- | |
allMetadataJar | |
INPUTS | |
/web/build/tmp/allMetadataJar | |
OUTPUTS | |
/web/build/libs | |
--------------- | |
allTests | |
INPUTS | |
/web/build/test-results/workerBrowserTest | |
/web/build/test-results/frontendBrowserTest | |
OUTPUTS | |
/web/build/reports/tests | |
--------------- | |
assemble | |
INPUTS | |
OUTPUTS | |
--------------- | |
build | |
INPUTS | |
OUTPUTS | |
--------------- | |
buildDependents | |
INPUTS | |
OUTPUTS | |
--------------- | |
buildEnvironment | |
INPUTS | |
OUTPUTS | |
--------------- | |
buildKotlinToolingMetadata | |
INPUTS | |
OUTPUTS | |
/web/build | |
--------------- | |
buildNeeded | |
INPUTS | |
OUTPUTS | |
--------------- | |
check | |
INPUTS | |
OUTPUTS | |
--------------- | |
clean | |
INPUTS | |
OUTPUTS | |
--------------- | |
cleanAllTests | |
INPUTS | |
OUTPUTS | |
--------------- | |
compileDevelopmentExecutableKotlinFrontend | |
INPUTS | |
/web/build/classes/kotlin/frontend/main/default/ir | |
/web/build/classes/kotlin/frontend/main/default | |
/web/build/classes/kotlin/frontend/main/default/linkdata | |
/web/build/classes/kotlin/frontend/main/default/linkdata/root_package | |
OUTPUTS | |
/web/build/compileSync/frontend/main/developmentExecutable | |
--------------- | |
compileDevelopmentExecutableKotlinWorker | |
INPUTS | |
/web/build/classes/kotlin/worker/main/default/ir | |
/web/build/classes/kotlin/worker/main/default | |
/web/build/classes/kotlin/worker/main/default/linkdata | |
/web/build/classes/kotlin/worker/main/default/linkdata/root_package | |
OUTPUTS | |
/web/build/compileSync/worker/main/developmentExecutable | |
--------------- | |
compileKotlinFrontend | |
INPUTS | |
/web/src/frontendMain/kotlin | |
OUTPUTS | |
/web/build/classes/kotlin/frontend | |
/web/build/kotlin/compileKotlinFrontend | |
--------------- | |
compileKotlinMetadata | |
INPUTS | |
/web/src/commonMain/kotlin | |
OUTPUTS | |
/web/build/classes/kotlin/metadata | |
/web/build/kotlin/compileKotlinMetadata | |
--------------- | |
compileKotlinWorker | |
INPUTS | |
/web/src/workerMain/kotlin | |
OUTPUTS | |
/web/build/classes/kotlin/worker | |
/web/build/kotlin/compileKotlinWorker | |
--------------- | |
compileProductionExecutableKotlinFrontend | |
INPUTS | |
/web/build/classes/kotlin/frontend/main/default/ir | |
/web/build/classes/kotlin/frontend/main/default | |
/web/build/classes/kotlin/frontend/main/default/linkdata | |
/web/build/classes/kotlin/frontend/main/default/linkdata/root_package | |
OUTPUTS | |
/web/build/compileSync/frontend/main/productionExecutable | |
--------------- | |
compileProductionExecutableKotlinWorker | |
INPUTS | |
/web/build/classes/kotlin/worker/main/default/ir | |
/web/build/classes/kotlin/worker/main/default | |
/web/build/classes/kotlin/worker/main/default/linkdata | |
/web/build/classes/kotlin/worker/main/default/linkdata/root_package | |
OUTPUTS | |
/web/build/compileSync/worker/main/productionExecutable | |
--------------- | |
compileTestDevelopmentExecutableKotlinFrontend | |
INPUTS | |
/web/build/classes/kotlin/frontend | |
/web/build/processedResources/frontend | |
OUTPUTS | |
/web/build/compileSync/frontend/test/testDevelopmentExecutable | |
--------------- | |
compileTestDevelopmentExecutableKotlinWorker | |
INPUTS | |
/web/build/classes/kotlin/worker | |
/web/build/processedResources/worker | |
OUTPUTS | |
/web/build/compileSync/worker/test/testDevelopmentExecutable | |
--------------- | |
compileTestKotlinFrontend | |
INPUTS | |
/web/build/classes/kotlin/frontend | |
OUTPUTS | |
/web/build/classes/kotlin/frontend | |
/web/build/kotlin/compileTestKotlinFrontend | |
--------------- | |
compileTestKotlinWorker | |
INPUTS | |
/web/build/classes/kotlin/worker | |
OUTPUTS | |
/web/build/classes/kotlin/worker | |
/web/build/kotlin/compileTestKotlinWorker | |
--------------- | |
compileTestProductionExecutableKotlinFrontend | |
INPUTS | |
/web/build/classes/kotlin/frontend | |
/web/build/processedResources/frontend | |
OUTPUTS | |
/web/build/compileSync/frontend/test/testProductionExecutable | |
--------------- | |
compileTestProductionExecutableKotlinWorker | |
INPUTS | |
/web/build/classes/kotlin/worker | |
/web/build/processedResources/worker | |
OUTPUTS | |
/web/build/compileSync/worker/test/testProductionExecutable | |
--------------- | |
components | |
INPUTS | |
OUTPUTS | |
--------------- | |
dependencies | |
INPUTS | |
OUTPUTS | |
--------------- | |
dependencyInsight | |
INPUTS | |
OUTPUTS | |
--------------- | |
dependentComponents | |
INPUTS | |
OUTPUTS | |
--------------- | |
frontendBrowserDevelopmentExecutableDistributeResources | |
INPUTS | |
/web/build/processedResources/frontend/main | |
/web/build/processedResources/frontend/main/large | |
/web/build/processedResources/frontend/main/small | |
OUTPUTS | |
/web/build/dist/frontend | |
--------------- | |
frontendBrowserDevelopmentExecutableDistribution | |
INPUTS | |
OUTPUTS | |
/web/build/dist/frontend | |
--------------- | |
frontendBrowserDevelopmentRun | |
INPUTS | |
/build/js/packages/compose-jetsnack-web-frontend/kotlin | |
OUTPUTS | |
/build/js/packages/compose-jetsnack-web-frontend | |
--------------- | |
frontendBrowserDevelopmentWebpack | |
INPUTS | |
/build/js/packages/compose-jetsnack-web-frontend/kotlin | |
OUTPUTS | |
/build/js/packages/compose-jetsnack-web-frontend | |
/web/build/dist/frontend | |
--------------- | |
frontendBrowserDistribution | |
INPUTS | |
OUTPUTS | |
/web/build/dist/frontend | |
--------------- | |
frontendBrowserProductionExecutableDistributeResources | |
INPUTS | |
/web/build/processedResources/frontend/main | |
/web/build/processedResources/frontend/main/large | |
/web/build/processedResources/frontend/main/small | |
OUTPUTS | |
/web/build/dist/frontend | |
--------------- | |
frontendBrowserProductionRun | |
INPUTS | |
/build/js/packages/compose-jetsnack-web-frontend/kotlin | |
OUTPUTS | |
/build/js/packages/compose-jetsnack-web-frontend | |
--------------- | |
frontendBrowserProductionWebpack | |
INPUTS | |
/build/js/packages/compose-jetsnack-web-frontend/kotlin | |
OUTPUTS | |
/build/js/packages/compose-jetsnack-web-frontend | |
/web/build/dist/frontend | |
--------------- | |
frontendBrowserRun | |
INPUTS | |
OUTPUTS | |
--------------- | |
frontendBrowserTest | |
INPUTS | |
/web/build/classes/kotlin/frontend | |
/web/build/processedResources/frontend | |
/build/js/packages/compose-jetsnack-web-frontend-test/kotlin | |
OUTPUTS | |
/web/build/test-results/frontendBrowserTest | |
/web/build/reports/tests | |
/web/build/test-results | |
--------------- | |
frontendBrowserWebpack | |
INPUTS | |
OUTPUTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment