We have a complex set of build.gradle scripts.
Is it possible to run a task without dependency checking of any kind?
eg
gradle run
should just start the jvm and nothing else?
Thank you.
If you want to exclude module dependencies, there is a -a
, or --no-rebuild
option to skip other subprojects/modules.
If you want to skip the compilation, or resources tasks, you can use the -x
option.
If running on bash, you can skip all dependencies like this
./gradlew test $(./gradlew test --dry-run | awk '/^:/ { print "-x" $1 }' | sed '$ d')
What this does is simply
Notice:
--console plain
flag if you want to see the initial output without the pretty-print features of Gradle
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.