Can def classes be hosted in a separate project than the build code ?¶
Yes. If you prefer for your Jeka code to lie in a distinct project, create a Jeka project in a sibling folder and mention where is located to the build project.
My JkClass does not compile, so I can't invoke any Jeka method as 'scaffold#run'. What can I do ?¶
-dci option in command line.
How can I migrate from Maven ?¶
Jeka helps translate all dependencies declared in a Maven project into the equivalent Java code.
Assuming Maven is already installed and there is a pom.xml file at the root of the project,
jeka maven#migrationCodeto display Java code to copy-paste in a build class.
How can I choose the JDK used to compile ?¶
Jeka uses the JDK it is running on to compile production or test code. If code must be compiled on a another JDK version, you can specify JDK path for different version. Simply mention it as option, for example in your [JEKA HOME]/options.properties file.
This way, if one of your project source code is declared to be in a specific Java version, the relevant JDK version will be picked up automatically.
How can I use Eclipse compiler in Jeka ?¶
Jeka can use any JSR199 Java compiler to compile your Java code. Just set the compiler instance you need as :
How can I generate Eclipse/Intellij without using ProjectJkBean ?¶
Just make your KBean class implement