# HG changeset patch # User Oleksandr Gavenko # Date 1544349419 -7200 # Node ID 3b2866390fb7c054d81bf16a313c518e3196f491 # Parent fdcdf49ddc714ada92aace2b2c178b3431962741 Reordered sections. diff -r fdcdf49ddc71 -r 3b2866390fb7 gradle.rst --- a/gradle.rst Mon Dec 03 17:04:16 2018 +0200 +++ b/gradle.rst Sun Dec 09 11:56:59 2018 +0200 @@ -11,6 +11,75 @@ $ gradle --help +Stopping server +=============== +:: + + $ gradle --stop + +Logging +======= + +Gradle uses modified Slf4j: ``org.gradle.api.logging.Logger``. + +Logging level can be set with ``org.gradle.api.logging.LogLevel``:: + + logger.log(LogLevel.LIFECYCLE, "Unzipping {}...", zipFile); + +``Project`` and ``Task`` has ``logger`` object with levels:: + + logger.error "..." + logger.quiet "..." + logger.warning "..." + logger.lifecycle "..." + logger.info "..." + logger.debug "..." + +``println`` is printed on ``quiet`` level. + +Make Gradle quiet:: + + $ gradle -q ... + +Make Gradle verbose:: + + $ gradle -i ... + $ gradle --info ... + +Make Gradle to print debug output:: + + $ gradle -d ... + $ gradle --debug ... + +Managing tasks +============== + +List tasks:: + + $ gradle tasks + +Getting list of supported tasks in each subproject:: + + $ gradle tasks --all + +Getting help on task:: + + $ gradle help --task build + $ gradle -q help --task build + +Similar but to each task:: + + $ gradle model + +Skip task during build with ``-x`` option:: + + $ gradle -x test build + $ gradle -x :core:build :client:build + +Skipt task programmatically:: + + gradle.startParameter.excludedTaskNames.add "jar" + Working with subprojects ======================== @@ -59,35 +128,6 @@ $ gradle --no-daemon --gradle-user-home ./.gradle.local -Managing tasks -============== - -List tasks:: - - $ gradle tasks - -Getting list of supported tasks in each subproject:: - - $ gradle tasks --all - -Getting help on task:: - - $ gradle help --task build - $ gradle -q help --task build - -Similar but to each task:: - - $ gradle model - -Skip task during build with ``-x`` option:: - - $ gradle -x test build - $ gradle -x :core:build :client:build - -Skipt task programmatically:: - - gradle.startParameter.excludedTaskNames.add "jar" - Build sources ============= :: @@ -173,12 +213,6 @@ } } -Stopping server -=============== -:: - - $ gradle --stop - List project dependencies ========================= @@ -374,32 +408,6 @@ $ gradle cleanIdea -Logging -======= - -``Project`` and ``Task`` has ``logger`` object with levels:: - - logger.error "..." - logger.quiet "..." - logger.warning "..." - logger.lifecycle "..." - logger.info "..." - logger.debug "..." - -``println`` is printed on ``quiet`` level. - -Make Gradle quiet:: - - $ gradle -q ... - -Make Gradle verbose:: - - $ gradle -i ... - -Make Gradle to print debug output:: - - $ gradle -d ... - Dependencies between tasks ==========================