Building .jars
IHMCOpenRoboticsSoftware is pre-configured for generating Maven publications. You can publish directly from the source code right in to your local Maven repository, e.g. the $HOME/.m2
directory. These builds will be tagged with a build "version" of "LOCAL"
instead of an incrementing version number.
An example workflow for developing against a local clone of the software:
- Clone IHMCOpenRoboticsSoftware
- Make modifications
- Publish to your local
$HOME/.m2
repository
To publish jars to your local Maven repository:
$ cd <IHMCOpenRoboticsSoftware directory>
$ ./gradlew publishAllToMavenLocal
To depend on the jars in your local Maven repository:
In this example we'll have a compile-time dependency of the locally built SimulationConstructionSet project. In the build.gradle
of the project you wish to have link against SimulationConstructionSet:
repositories {
mavenLocal()
<your other repositories>
}
dependencies {
compile group: 'us.ihmc', name: 'SimulationConstructionSet', version: 'LOCAL', changing: true
}