Jeka - Reuse Elements - IDE

Author : Jérôme Angibaud
Version : 0.9.11.RELEASE

Reuse build elements
Add dependencies to
Make a plugin

Reuse build elements

Jeka offers flexible and powerful mechanisms to reuse build elements, like :

Add dependencies to def classes

This simple mechanism is powerful. It let your def classes depends on other Java code just as you would de for your test/productoin code. It means that you can make your def classes depend on :

This tutorial will give some simple examples of what you can achieve for factoring out parts of your builds.

With Jeka you can reuse and share any build elements exactly as you would do for regular code. You can reuse piece of code within a multi-module project or export it on a repository to reuse it across projects.

These piece of code can be Jeka plugins or simple classes for make your build code shorter, tough you can much smarter thing

Make a plugin

A plugin is a collection of commands and options (meaning public no-args methods and fields) that can be bind to any JkClass in order to augment it or modify its behavior.

For common usage, you don't need to write your own plugin but you will probably uses the ones that are bundled with Jeka. The simplest think to understand how it works, is to write your own one.