Gradle Goodness: Run a Build Script With a Different Name
Normally Gradle looks for a build script file with the name build.gradle in the current directory to execute a build. But we can easily use a different name or directory for the build file. We only have to use the -b or --build-file command-line option and tell Gradle the name of the build script file.
$ gradle -b builder.gradle$ gradle -b otherdir/build.gradle$ gradle --build-file otherdir/run.it
浙公网安备 33010602011771号