Maven allows you to specify 1 pom that you pull in settings from. This is the "basepom" for all Nutrons projects, from this pom you pull in most of the non-project specific settings you need in order to build a Nutrons project using maven. Maven doc
- Our basepom uses the
sortpom-maven-pluginto enforce a sort on all child poms (so that they're easier to read and understand). - Our basepom uses the
maven-checkstyle-pluginto enforce java style according to the Google Style Guide - This pom sets up the local repository to find the WPILibs in, which requires that this project is configured as a sub-module.
This project is published on jitpack an awesome site that makes it super easy to turn a repository into a downloadable jar for use as a dependency.
To cut a release:
- bump the version in
pom.xmlto1.0.x. - Push to master
- Make a release here using the version # that you bumped to.
- Go to jitpack https://jitpack.io/#FRC125/maven-build-files, and log in.
- Click
get itnext to the version that you just cut a release for. - Wait for jitpack to build it... Congratulations now you can depend on this in other projects.