gradle.rst
changeset 2083 75ae6a4ad500
parent 2078 e7fe6c24cf5f
child 2086 c07317dca036
equal deleted inserted replaced
2082:7f6ce6b18a0c 2083:75ae6a4ad500
     9 ============
     9 ============
    10 ::
    10 ::
    11 
    11 
    12   $ gradle --help
    12   $ gradle --help
    13 
    13 
       
    14 Getting list of subprojects
       
    15 ===========================
       
    16 ::
       
    17 
       
    18   $ gradle projects
       
    19 
    14 Getting list of supported tasks
    20 Getting list of supported tasks
    15 ===============================
    21 ===============================
    16 ::
    22 ::
    17 
    23 
    18   $ gradle tasks
    24   $ gradle tasks
       
    25 
       
    26 Getting list of supported tasks in each subproject::
       
    27 
       
    28   $ gradle tasks --all
       
    29 
       
    30 Getting help on task::
       
    31 
       
    32   $ gradle -q help --task build
    19 
    33 
    20 Build sources
    34 Build sources
    21 =============
    35 =============
    22 ::
    36 ::
    23 
    37 
    34 ===============
    48 ===============
    35 ::
    49 ::
    36 
    50 
    37   $ gradle --stop
    51   $ gradle --stop
    38 
    52 
       
    53 List project dependencies
       
    54 =========================
       
    55 
       
    56 List of project execution dependencies::
       
    57 
       
    58   $ gradle dependencies
       
    59   $ gradle dependencies -p $SUBPROJ
       
    60   $ gradle :$SUBPROJ:dependencies
       
    61   $ gradle :$SUBPROJ:dependencies --configuration testCompile
       
    62 
       
    63 List of project plugin dependencies::
       
    64 
       
    65   $ gradle buildEnvironment
       
    66   $ gradle buildEnvironment -p $SUBPROJ
       
    67   $ gradle :$SUBPROJ:buildEnvironment
       
    68 
       
    69 List project properties
       
    70 =======================
       
    71 ::
       
    72 
       
    73   $ gradle properties
       
    74   $ gradle :$SUBPROJ:properties
       
    75   $ gradle properties -p $SUBPROJ
       
    76 
       
    77 Dry tun
       
    78 =======
       
    79 
       
    80 ``-m`` option allow parsing build scripts without actually executing them::
       
    81 
       
    82   $ gradle -m clean compile
       
    83 
       
    84