Cheat Sheet
Useful Commands
| Command |
Description |
--doc |
Displays available methods, options, and KBeans. |
intellij: sync -f |
Generates .iml file for IntelliJ IDEA. |
intellij: initProject |
Initializes IntelliJ IDEA Project. |
eclipse: sync |
Same purpose as above to generate metadata files for Eclipse. |
project: scaffold |
Generates files to create a basic JeKa project from scratch. |
project: pack |
Build JARs and other optional artifacts from a project. |
base: scaffold |
Creates files for a base workspace without a project. |
Standard Properties
| Property Name |
Default Value |
Description |
| jeka.version |
|
The JeKa version to use. It will be fetched from the repository specified in the jeka.distrib.repo property. Use jeka.version=. to force the use of the locally installed version. |
| jeka.distrib.location |
|
The exact location (directory) to get the JeKa distribution. If set, both jeka.version and jeka.distrib.repo will be ignored. |
| jeka.java.version |
|
The version of the JDK used to run JeKa and compile code located in jeka-src. |
| jeka.java.distrib |
temurin |
The distribution of JDK to fetch when jeka.java.version is mentioned. Should be 21 or higher. |
| jeka.repos.download |
local, mavenCentral |
Comma-separated string of repositories to fetch Maven dependencies. More details here. |
| jeka.repos.publish |
|
Comma-separated string of repositories to publish Maven artifacts. More details here. |
| jeka.program.build |
project: pack -Djeka.test.skip=true |
Command line to execute to build the project when execution files are absent. |
| jeka.kbean.default |
|
Name or class name of the KBean to use as default (when none is specified). |
| jeka.test.skip |
|
Skip tests when building projects or codebases. |
| jeka.platform.os |
linux, windows or mac |
Provides the OS of the running machine. |
JDK Selection Rules
- If
JEKA_JDK_HOME is set, use this JDK.
- If
jeka.java.version is specified:
- Use JDK from
jeka.jdk.[version] if available.
- Otherwise, fetch JDK from local cache or download it.
- If no version is specified:
- Use JDK from
JAVA_HOME if set.
- Otherwise, fetch JDK 21 from local cache or download it.
How JeKa Reads Properties
JeKa reads properties in this order:
- Command-line arguments (as
-Dmy.prop=xxx).
- Environment variables (
my.prop or MY_PROP).
- The
jeka.properties file in the base directory.
- The
jeka.properties file in parent directories, until it is not found.
- The
global.properties file in [JEKA_USER_HOME].