-
Notifications
You must be signed in to change notification settings - Fork 40.5k
Useful build commands
This page gathers some commands that are useful when working on the project.
When working in a sub-module, the wrapper script defined at the root of the repository is not available. The following explains how to workaround that issue.
Copy the following script in your environment, i.e. ~/bin/run-gradle.sh
.
Then alias the script to make it easier to use. For instance to g
:
alias g=~/bin/run-gradle.sh
You can now invoke Gradle anywhere using g
, e.g. g build
.
Copy the following script in your environment, i.e. ~/bin/run-mvn.sh
.
Then alias the script to make it easier to use. For instance to m
:
alias m=~/bin/run-mvn.sh
You can now invoke Maven anywhere using m
, e.g. m package
.
This is a list of commands that we use often when working on the project. For convenience, both the Maven and Gradle commands are provided, when possible.
The following command runs all the tests in the current module that start with Cassandra
:
Gradle | Maven |
---|---|
|
|
We use bomr
to check for new dependency versions. Maven requires bomr.jar
to be available on the path while Gradle does not. This command should be ran at the root of the repository. Here is an example targeting Spring Boot 2.3.0.M4
:
Gradle | Maven |
---|---|
|
|