status-react/nix/deps/gradle/get_projects.sh

13 lines
340 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -Eeu
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
# Gradle needs to be run in 'android' subfolder
cd "${GIT_ROOT}/android"
# Print all our sub-projects
./gradlew projects --no-daemon --console plain 2>&1 \
| grep "Project ':" \
| sed -E "s;^.--- Project '\:([@_a-zA-Z0-9\-]+)';\1;"