@Retention(value=RUNTIME)
@Target(value={FIELD,TYPE})
public @interface JkInjectProject
JkClass
class from 'jeka/def' source directory.
But when used on a public field of type JkClass
within a JkClass
class,
the annotated field is injected with an initialised JkClass
instance of the imported project.Example :
public class FatJarBuild extends JkClass {
ProjectJkBean projectPlugin = getPlugin(ProjectJkBean.class);
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
Dependee project relative path
|