2019-12-02 09:34:57 -05:00
|
|
|
Typical workflow and tasks
|
|
|
|
==========================
|
|
|
|
|
|
|
|
This shows some typical workflow gradle commands.
|
|
|
|
|
|
|
|
Run tests on a module:
|
|
|
|
gradlew -p lucene/core test
|
|
|
|
|
|
|
|
Run test of a single-class (run "gradlew :helpTests" for more):
|
|
|
|
gradlew -p lucene/core test --tests "*Demo*"
|
|
|
|
|
|
|
|
Run all tests and validation checks on a module:
|
|
|
|
gradlew -p lucene/core check
|
|
|
|
|
|
|
|
Run all tests and validation checks on everything:
|
|
|
|
gradlew check
|
|
|
|
|
|
|
|
Run all validation checks but skip all tests:
|
|
|
|
gradlew check -x test
|
|
|
|
|
|
|
|
Assemble a single module's JAR (here for lucene-core):
|
|
|
|
gradlew -p lucene/core assemble
|
|
|
|
ls lucene/core/build/libs
|
|
|
|
|
|
|
|
Create all distributable packages, POMs, etc. and create a
|
|
|
|
local maven repository for inspection:
|
|
|
|
gradlew mavenLocal
|
|
|
|
ls -R build/maven-local/
|
|
|
|
|
|
|
|
Put together Solr distribution:
|
|
|
|
gradlew -p solr/packaging assemble
|
2020-09-10 11:55:48 -04:00
|
|
|
ls solr/packaging/build/distributions/solr-* # release archives
|
|
|
|
ls solr/packaging/build/solr-* # expanded directory
|
2019-12-02 09:34:57 -05:00
|
|
|
|
2020-01-26 04:45:05 -05:00
|
|
|
|
|
|
|
Other validation and checks
|
|
|
|
===========================
|
|
|
|
|
2020-01-26 04:01:51 -05:00
|
|
|
Generate a report of dependencies with known OWASP vulnerabilities:
|
2020-01-26 04:45:05 -05:00
|
|
|
gradlew :dependencyCheckAnalyze
|
|
|
|
open ./build/reports/dependency-check-report.html
|