Skip to content

Latest commit

 

History

History
executable file
·
50 lines (41 loc) · 1.1 KB

gradle.md

File metadata and controls

executable file
·
50 lines (41 loc) · 1.1 KB

print all dependencies for project, dependency tree

gradlew dependencies

execute gradle with specific build.gradle file

gradlew.bat -b migration-job/build.gradle build

quite output, output without messages

gradlew.bat -q build

gradle debug

https://docs.gradle.org/current/userguide/build_environment.html gradle -Dorg.gradle.debug=true --no-daemon clean

skip tests

gradlew build -x test gradlew test --test "com.example.android.testing.blueprint.unit.integrationTests.*"

execute single test

gradlew test -Dtest.single=< wildcard of test > build

groovy

init project

gradle init --groovy-application
gradle init --type java-library
  • java-application
  • java-library
  • scala-library
  • groovy-library
  • basic

execute groovy script

add into build.gradle

task runScript (dependsOn: 'classes', type: JavaExec) {
    main = 'App'
    classpath = sourceSets.main.runtimeClasspath
}

execute script

gradle runtScript

proxy settings

gradle build -Dhttp.proxyHost=proxy-host -Dhttp.proxyPort=8080 -Dhttp.proxyUser=q4577777 -Dhttp.proxyPassword=my-password