blob: c6e8f57fa81e4f7cbe6d7d198c0430f52cd3abb9 [file] [view]
# Typical workflow and tasks
This shows some typical workflow gradle commands.
Ensure your changes are correctly formatted (run `gradlew :helpFormatting` for more):
```bash
gradlew tidy
```
Run tests on a module:
```bash
gradlew -p lucene/core test
```
Run test of a single-class (run `gradlew :helpTests` for more):
```bash
gradlew -p lucene/core test --tests "*Demo*"
```
Run all tests and validation checks on a module:
```bash
gradlew -p lucene/core check
```
Run all tests and validation checks on everything:
```bash
gradlew check
```
Run all validation checks but skip all tests:
```bash
gradlew check -x test
```
Assemble a single module's JAR (here for lucene-core):
```bash
gradlew -p lucene/core assemble
ls lucene/core/build/libs
```
Assemble all Lucene artifacts (JARs, and so on):
```bash
gradlew assemble
```
Create all distributable packages, POMs, etc. and create a local maven repository for inspection:
```bash
gradlew mavenLocal
ls -R build/maven-local/
```
Assemble Javadocs on a module:
```bash
gradlew -p lucene/core javadoc
ls lucene/core/build/docs
```
Assemble entire documentation (including javadocs):
```bash
gradlew documentation
ls lucene/documentation/build/site
```