blob: 0b4f1de38ec67dcd1fcc5c32d93f3c236853cc72 (
plain)
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
34
35
36
|
# Gradle - Java builds and dependency management
## Dependencies
Local jar:
dependencies {
implementation files('path/to/lib.jar')
}
## Testing
Run only specified tests.
./gradlew test --tests <ClassName[.methodName]>
## Conventions
Given a root project name (in settings.gradle, rootProject.name), creates a
directory structure of
src/
main/
java/
root/package/name
resources/
test/
java/
root/package/name
resources/
E.g. main code for com.example.project will be under `src/main/java/com/example/project`.
## Under the hood
Dependencies are saved to `~/.gradle/caches/modules-2/files-2.1/`
|