public class JkPluginJava extends JkPlugin implements JkJavaIdeSupport.JkSupplier
JkJavaProject
pre-configured with JkOptions
.
and a decoration for scaffolding.Modifier and Type | Class and Description |
---|---|
static class |
JkPluginJava.JkJavaPackOptions
Standard options for packaging java projects.
|
static class |
JkPluginJava.JkTestOptions
Options about tests
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
compilerExtraArgs |
boolean |
noFacade |
JkPluginJava.JkJavaPackOptions |
pack
Options for the packaging tasks (jar creation).
|
JkPluginJava.JkTestOptions |
test
Options for the testing tasks.
|
Modifier | Constructor and Description |
---|---|
protected |
JkPluginJava(JkCommandSet commandSet) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterSetup()
Override this method to perform some actions, once the plugin has been setup by
JkCommandSet.setup() method. |
protected void |
beforeSetup()
Override this method to initialize the plugin.
|
void |
compile() |
JkJavaIdeSupport |
getJavaIdeSupport() |
JkJavaProject |
getProject() |
JkPluginRepo |
getRepoPlugin() |
JkPluginScaffold |
getScaffoldPlugin() |
void |
info() |
void |
pack() |
void |
publish() |
void |
publishLocal() |
void |
refreshDeps() |
void |
setProject(JkJavaProject javaProject) |
void |
showDependencies()
Displays the resolved dependency tree on the console.
|
void |
test() |
getBreakingVersionRegistryUrl, getCommandSet, getLowestJekaCompatibleVersion, help, name, toString
public final JkPluginJava.JkJavaPackOptions pack
public final JkPluginJava.JkTestOptions test
public java.lang.String compilerExtraArgs
public boolean noFacade
protected JkPluginJava(JkCommandSet commandSet)
protected void beforeSetup()
JkPlugin
JkCommandSet.setup()
is invoked.beforeSetup
in class JkPlugin
protected void afterSetup()
JkPlugin
JkCommandSet.setup()
method.
Typically, some plugins have to configure other ones (For instance, java plugin configures
scaffold plugin to instruct what to use as a template build class). Those kind of
configuration is better done here as the setup made in JkCommandSet
is likely
to impact the result of the configuration.
afterSetup
in class JkPlugin
public JkJavaProject getProject()
public void setProject(JkJavaProject javaProject)
public JkPluginRepo getRepoPlugin()
public JkPluginScaffold getScaffoldPlugin()
public void compile()
public void test()
public void pack()
public final void showDependencies()
public void info()
public void publish()
public void publishLocal()
public void refreshDeps()
public JkJavaIdeSupport getJavaIdeSupport()
getJavaIdeSupport
in interface JkJavaIdeSupport.JkSupplier