Projects - pford68/gradle-examples GitHub Wiki
The default project layout is like Maven's.
| Directory | Description |
|---|---|
| src/main/java | The Java source directory |
| src/main/resources | The project resources |
| src/test/java | The test sources directory |
| src/test/resources | The resource directory for tests |
| src/sourceSet/java | The Java source directory for the given source set |
| src/sourceSet/resources | The resource directory for the given source set |
Source sets allow you to customize the project layout.
// Source set example
sourceSets {
main {
java {
srcDir 'src/java'
}
resources {
srcDir 'src/resources'
}
}
}Of course, you can use another gradle file as a plugin:
apply from: '<path>'Paths are relative to the project directory.
- https://docs.gradle.org/current/userguide/java_plugin.html#N12154 (Project Layout at 23.4)