본문 바로가기

plming/Java

gradle 결과무시 재실행

gradle을 통해 실행된 결과는 Cash된다.

이를 무시하고 다시 실행하기 원할 때는

 

gradle -rerun-tasks 블라블라

 

batch 파일로 만들어서 실행하고 싶다면

gradle 자체가 .bat 파일이기 때문에

 

call gradle -rerun-tasks 블라블라

 

 

이런 저런 실행 옵션은

 

> gradle -h

USAGE: gradle [option...] [task...]

 

 -?, -h, --help
 -a, --no-rebuild
 -b, --build-file
 -c, --settings-file
 --configure-on-demand

 

 

 --continue
 -D, --system-prop
 -d, --debug
 --daemon

 

 --foreground
 -g, --gradle-user-home
 --gui
 -I, --init-script
 -i, --info
 -m, --dry-run
 --no-color
 --no-daemon
 --offline
 -P, --project-prop

 

 -p, --project-dir

 

 Shows this help message.
 Do not rebuild project dependencies.
 Specifies the build file.
 Specifies the settings file.
 Only relevant projects are configured in this build run.
 This means faster build for large multi-project builds.
 [incubating]
 Continues task execution after a task failure.
 Set system property of the JVM (e.g. -Dmyprop=myvalue).
 Log in debug mode (includes normal stacktrace).
 Uses the Gradle daemon to run the build.
 Starts the daemon if not running.
 Starts the Gradle daemon in the foreground. [incubating]
 Specifies the gradle user home directory.
 Launches the Gradle GUI.
 Specifies an initialization script.
 Set log level to info.
 Runs the builds with all task actions disabled.
 Do not use color in the console output.
 Do not use the Gradle daemon to run the build.
 The build should operate without accessing network resources.
 Set project property for the build script
 (e.g. -Pmyprop=myvalue).
 Specifies the start directory for Gradle.
 Defaults to current directory.

 --parallel

 

 

 --parallel-threads

 

 Build projects in parallel.

 Gradle will attempt to determine the optimal number of executor threads to use. [incubating]
 Build projects in parallel, using the specified number of executor threads. [incubating]

 --profile

 

 --project-cache-dir

 -q, --quiet
 --recompile-scripts
 --refresh-dependencies
 --rerun-tasks
 -S, --full-stacktrace
 -s, --stacktrace
 --stop
 -u, --no-search-upward
 -v, --version
 -x, --exclude-task

 Profiles build execution time and generates a report in the <build_dir>/reports/profile directory.
 Specifies the project-specific cache directory.
 Defaults to .gradle in the root project directory.
 Log errors only.
 Force build script recompiling.
 Refresh the state of dependencies.
 Ignore previously cached task results.
 Print out the full (very verbose) stacktrace for all exceptions.
 Print out the stacktrace for all exceptions.
 Stops the Gradle daemon if it is running.
 Don't search in parent folders for a settings.gradle file.
 Print version info.
 Specify a task to be excluded from execution.