@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.796Z") @Stability(value=Experimental) public class JavaProject extends GitHubProject
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaProject.Builder
(experimental) A fluent builder for
JavaProject. |
DEFAULT_TASK| Modifier | Constructor and Description |
|---|---|
|
JavaProject(JavaProjectOptions options) |
protected |
JavaProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
JavaProject(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(String spec)
(experimental) Adds a runtime dependency.
|
Dependency |
addPlugin(String spec)
(experimental) Adds a build plugin to the pom.
|
Dependency |
addPlugin(String spec,
PluginOptions options)
(experimental) Adds a build plugin to the pom.
|
void |
addTestDependency(String spec)
(experimental) Adds a test dependency.
|
MavenCompile |
getCompile()
(experimental) Compile component.
|
String |
getDistdir()
(experimental) Maven artifact output directory.
|
Junit |
getJunit()
(experimental) JUnit component.
|
MavenPackaging |
getPackaging()
(experimental) Packaging component.
|
Pom |
getPom()
(experimental) API for managing `pom.xml`.
|
Projenrc |
getProjenrc()
(experimental) Projenrc component.
|
annotateGenerated, getAutoApprove, getDevContainer, getGithub, getGitpod, getProjectType, getVscodeaddExcludeFromCleanup, addGitIgnore, addPackageIgnore, addTask, addTask, addTip, getBuildTask, getCompileTask, getComponents, getDefaultTask, getDeps, getFiles, getGitattributes, getGitignore, getInitProject, getLogger, getName, getOutdir, getPackageTask, getParent, getPostCompileTask, getPreCompileTask, getProjectBuild, getProjenCommand, getRoot, getTasks, getTestTask, postSynthesize, preSynthesize, removeTask, runTaskCommand, synth, tryFindFile, tryFindJsonFile, tryFindObjectFilejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected JavaProject(software.amazon.jsii.JsiiObjectRef objRef)
protected JavaProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public JavaProject(@NotNull
JavaProjectOptions options)
options - This parameter is required.@Stability(value=Experimental)
public void addDependency(@NotNull
String spec)
spec - Format `@Stability(value=Experimental) @NotNull public Dependency addPlugin(@NotNull String spec, @Nullable PluginOptions options)
The plug in is also added as a BUILD dep to the project.
spec - dependency spec (`group/artifact@version`). This parameter is required.options - plugin options.@Stability(value=Experimental) @NotNull public Dependency addPlugin(@NotNull String spec)
The plug in is also added as a BUILD dep to the project.
spec - dependency spec (`group/artifact@version`). This parameter is required.@Stability(value=Experimental)
public void addTestDependency(@NotNull
String spec)
spec - Format `@Stability(value=Experimental) @NotNull public MavenCompile getCompile()
@Stability(value=Experimental) @NotNull public String getDistdir()
@Stability(value=Experimental) @NotNull public MavenPackaging getPackaging()
@Stability(value=Experimental) @NotNull public Pom getPom()
@Stability(value=Experimental) @Nullable public Junit getJunit()
@Stability(value=Experimental) @Nullable public Projenrc getProjenrc()
Copyright © 2021. All rights reserved.