Skip to content

Commit e313012

Browse files
committed
Support --rerun
Gradle now supports a task option `--rerun` that reruns the specific task(s) being run, but not their dependencies. Useful for tests - `./gradlew test --rerun`. See https://docs.gradle.org/current/userguide/command_line_interface.html#sec:task_options Signed-off-by: Robert Elliot <rob@lidalia.org.uk>
1 parent 25da917 commit e313012

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

_gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ __gradle_subcommand() {
286286
'--recompile-scripts[Force build script recompiling.]' \
287287
'--refresh[Refresh the state of resources of the type(s) specified.]:refresh policy:(dependencies)' \
288288
'--refresh-dependencies[Refresh the state of dependencies.]' \
289+
'--rerun[Causes the particular task to be rerun even if up-to-date.]' \
289290
'--rerun-tasks[Ignore previously cached task results.]' \
290291
'(--no-scan)--scan[Create a build scan.]' \
291292
'(-S --full-stacktrace)'{-s,--stacktrace}'[Print out the stacktrace for all exceptions.]' \

gradle-completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ __gradle-long-options() {
118118
--quiet - Log errors only
119119
--recompile-scripts - Forces scripts to be recompiled, bypassing caching
120120
--refresh-dependencies - Refresh the state of dependencies
121+
--rerun - Causes the particular task to be rerun even if up-to-date.
121122
--rerun-tasks - Specifies that any task optimization is ignored
122123
--scan - Create a build scan
123124
--settings-file - Specifies the settings file

0 commit comments

Comments
 (0)