public class JkProjectConstruction
extends java.lang.Object
Java Project Jar Production has common characteristics :
JkProjectConstruction
scope.Modifier and Type | Method and Description |
---|---|
void |
addTextAndLocalDependencies() |
JkProjectConstruction |
apply(java.util.function.Consumer<JkProjectConstruction> consumer) |
JkProjectConstruction |
configureRuntimeDependencies(java.util.function.UnaryOperator<JkDependencySet> modifier)
Specify the dependencies to add or remove from the production compilation dependencies to
get the runtime dependencies.
|
void |
createBinJar() |
void |
createBinJar(java.nio.file.Path target) |
void |
createFatJar() |
void |
createFatJar(java.nio.file.Path target) |
JkProjectConstruction |
customizeFatJarContent(java.util.function.Function<JkPathTreeSet,JkPathTreeSet> customizer)
Allows customizing thz content of produced fat jar.
|
JkProjectCompilation<JkProjectConstruction> |
getCompilation() |
JkJavaCompiler<JkProjectConstruction> |
getCompiler()
Returns the compiler compiling Java sources for this project.
|
org.w3c.dom.Document |
getDependenciesAsXml() |
JkDependencyResolver<JkProjectConstruction> |
getDependencyResolver() |
JkPathTreeSet |
getExtraFilesToIncludeInJar() |
JkJavaVersion |
getJvmTargetVersion()
Gets the Java version used as source and target version
|
JkManifest<JkProjectConstruction> |
getManifest() |
JkProjectDependencies |
getProjectDependencies() |
JkDependencySet |
getRuntimeDependencies() |
java.lang.String |
getSourceEncoding()
Returns encoding to use to read Java source files
|
JkProjectTesting |
getTesting() |
JkResolveResult |
resolveRuntimeDependencies() |
JkProjectConstruction |
setJvmTargetVersion(JkJavaVersion jvmTargetVersion)
Sets the Java version used for both source and target.
|
JkProjectConstruction |
setSourceEncoding(java.lang.String sourceEncoding)
Set the encoding to use to read Java source files
|
public JkProject __
public JkProjectConstruction apply(java.util.function.Consumer<JkProjectConstruction> consumer)
public JkDependencyResolver<JkProjectConstruction> getDependencyResolver()
public JkJavaCompiler<JkProjectConstruction> getCompiler()
public JkProjectConstruction setJvmTargetVersion(JkJavaVersion jvmTargetVersion)
public JkJavaVersion getJvmTargetVersion()
public java.lang.String getSourceEncoding()
public JkProjectConstruction setSourceEncoding(java.lang.String sourceEncoding)
public JkProjectCompilation<JkProjectConstruction> getCompilation()
public JkProjectDependencies getProjectDependencies()
public JkProjectTesting getTesting()
public JkManifest<JkProjectConstruction> getManifest()
public void createBinJar(java.nio.file.Path target)
public void createBinJar()
public void createFatJar(java.nio.file.Path target)
public void createFatJar()
public JkPathTreeSet getExtraFilesToIncludeInJar()
public JkProjectConstruction customizeFatJarContent(java.util.function.Function<JkPathTreeSet,JkPathTreeSet> customizer)
public JkProjectConstruction configureRuntimeDependencies(java.util.function.UnaryOperator<JkDependencySet> modifier)
modifier
- An function that define the runtime dependencies from the compilation ones.public JkDependencySet getRuntimeDependencies()
public JkResolveResult resolveRuntimeDependencies()
public void addTextAndLocalDependencies()
public org.w3c.dom.Document getDependenciesAsXml()