public class JkJavaProject extends java.lang.Object implements JkJavaIdeSupport.JkSupplier
JkJavaProjectJarProduction
: responsible to compile, tests and make jarsJkJavaProjectDocumentation
: responsible to creates javadoc, sources jar and othersJkJavaProjectPublication
: responsible to publish the artifacts on binary repositories (Maven or Ivy)
JkJavaProject
defines base and output directories as they are shared with the 3 parts.
Modifier and Type | Method and Description |
---|---|
JkJavaProject |
apply(java.util.function.Consumer<JkJavaProject> projectConsumer) |
java.nio.file.Path |
getBaseDir() |
JkJavaProjectDocumentation |
getDocumentation() |
java.lang.String |
getInfo() |
JkJavaProjectJarProduction |
getJarProduction() |
JkJavaIdeSupport |
getJavaIdeSupport() |
java.nio.file.Path |
getOutputDir()
Returns path of the directory under which are produced build files
|
JkJavaProjectPublication |
getPublication() |
static JkJavaProject |
of() |
JkJavaProject |
setBaseDir(java.nio.file.Path baseDir) |
JkJavaProject |
setOutputDir(java.lang.String relativePath)
Sets the output path dir relative to base dir.
|
JkLocalLibDependency |
toDependency() |
JkLocalLibDependency |
toDependency(JkArtifactId artifactId) |
java.lang.String |
toString() |
public static JkJavaProject of()
public JkJavaProject apply(java.util.function.Consumer<JkJavaProject> projectConsumer)
public java.nio.file.Path getBaseDir()
public JkJavaProject setBaseDir(java.nio.file.Path baseDir)
public java.nio.file.Path getOutputDir()
public JkJavaProject setOutputDir(java.lang.String relativePath)
public JkJavaProjectJarProduction getJarProduction()
public JkJavaProjectPublication getPublication()
public JkJavaProjectDocumentation getDocumentation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getInfo()
public JkJavaIdeSupport getJavaIdeSupport()
getJavaIdeSupport
in interface JkJavaIdeSupport.JkSupplier
public JkLocalLibDependency toDependency()
public JkLocalLibDependency toDependency(JkArtifactId artifactId)