forked from cheat/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gradle
33 lines (24 loc) · 719 Bytes
/
gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
syntax: bash
tags: [ development, build ]
---
# To compile, test and package a project:
gradle build
# To skip a task from the build:
gradle build -x <test>
# To prevent Gradle from accessing the network during builds:
gradle build --offline
# To clear the build directory:
gradle clean
# To refresh the project dependencies:
gradle clean build --refresh-dependencies
# To list the project dependencies:
gradle dependencies
# To list the tasks you can run in your project:
gradle tasks
# To list all the tasks:
gradle tasks --all
# To create a Gradle build for a new project or convert a Maven build to Gradle:
gradle init
# To create a Gradle build for a new Java project:
gradle init --type java-library