File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,3 @@ plugins {
4949 alias(libs.plugins.room) apply false
5050 alias(libs.plugins.module.graph) apply true // Plugin applied to allow module graph generation
5151}
52-
53- // Task to print all the module paths in the project e.g. :core:data
54- // Used by module graph generator script
55- tasks.register(" printModulePaths" ) {
56- subprojects {
57- if (subprojects.size == 0 ) {
58- println (this .path)
59- }
60- }
61- }
Original file line number Diff line number Diff line change 3131 exit 1
3232fi
3333
34+ # Check for a version of grep which supports Perl regex.
35+ # On MacOS the OS installed grep doesn't support Perl regex so check for the existence of the
36+ # GNU version instead which is prefixed with 'g' to distinguish it from the OS installed version.
37+ if grep -P " " /dev/null > /dev/null 2>&1 ; then
38+ GREP_COMMAND=grep
39+ elif command -v ggrep & > /dev/null; then
40+ GREP_COMMAND=ggrep
41+ else
42+ echo " You don't have a version of 'grep' installed which supports Perl regular expressions."
43+ echo " On MacOS you can install one using Homebrew with the command: 'brew install grep'"
44+ exit 1
45+ fi
46+
3447# Initialize an array to store excluded modules
3548excluded_modules=()
3649
@@ -50,7 +63,7 @@ while [[ $# -gt 0 ]]; do
5063done
5164
5265# Get the module paths
53- module_paths=$( ./gradlew -q printModulePaths --no-configuration-cache )
66+ module_paths=$( ${GREP_COMMAND} -oP ' include\("\K[^"]+ ' settings.gradle.kts )
5467
5568# Ensure the output directory exists
5669mkdir -p docs/images/graphs/
You can’t perform that action at this time.
0 commit comments