DEST_FOLDER=$HOME_SOFT/gradle/bash_completion
mkdir -p $DEST_FOLDER
curl -LA gradle-completion https://edub.me/gradle-completion-bash -o $DEST_FOLDER/gradle-completion.bash
echo 'source $HOME_SOFT/gradle/bash_completion/gradle-completion.bash' >> ~/.bashrc
gradlew dependencies
task downloadDependenciesToRuntime(type: Copy) {
from sourceSets.main.runtimeClasspath
into 'runtime/'
}
gradlew.bat -b migration-job/build.gradle build
gradlew.bat -q build
https://docs.gradle.org/current/userguide/build_environment.html gradle -Dorg.gradle.debug=true --no-daemon clean
gradlew build -x test gradlew test --test "com.example.android.testing.blueprint.unit.integrationTests.*"
gradlew test -Dtest.single=< wildcard of test > build
gradle init --groovy-application
gradle init --type java-library
- java-application
- java-library
- scala-library
- groovy-library
- basic
add into build.gradle
task runScript (dependsOn: 'classes', type: JavaExec) {
main = 'App'
classpath = sourceSets.main.runtimeClasspath
}
execute script
gradle runtScript
gradle build -Dhttp.proxyHost=proxy-host -Dhttp.proxyPort=8080 -Dhttp.proxyUser=q4577777 -Dhttp.proxyPassword=my-password