A unit tested jar can be created.

The build uses the normal gradle life cycle. Unit tests are perform before the jar is assembled.