Reuse build logic (Work in progress)
            Add dependencies to
            Create your own plugin

Reuse build logic (Work in progress)

Jeka offers flexible and powerful mechanisms to reuse build logic, as :

Add dependencies to def classpath

This simple mechanism is powerful. It let def classes depend on other Java code just as it would be for test/production code. It means that def classes can depend on :

This tutorial will give some simple examples on how you can factor 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

Create your own 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.