Package io.github.cdklabs.projen.java
Class JavaProject
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- io.github.cdklabs.projen.Project
-
- io.github.cdklabs.projen.github.GitHubProject
-
- io.github.cdklabs.projen.java.JavaProject
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
AwsCdkJavaApp
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.137Z") @Stability(Experimental) public class JavaProject extends GitHubProject
(experimental) Java project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavaProject.Builder(experimental) A fluent builder forJavaProject.
-
Field Summary
-
Fields inherited from class io.github.cdklabs.projen.Project
DEFAULT_TASK
-
-
Constructor Summary
Constructors Modifier Constructor Description JavaProject(JavaProjectOptions options)protectedJavaProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedJavaProject(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependency(String spec)(experimental) Adds a runtime dependency.DependencyaddPlugin(String spec)(experimental) Adds a build plugin to the pom.DependencyaddPlugin(String spec, PluginOptions options)(experimental) Adds a build plugin to the pom.voidaddTestDependency(String spec)(experimental) Adds a test dependency.MavenCompilegetCompile()(experimental) Compile component.StringgetDistdir()(experimental) Maven artifact output directory.JunitgetJunit()(experimental) JUnit component.MavenPackaginggetPackaging()(experimental) Packaging component.PomgetPom()(experimental) API for managingpom.xml.ProjenrcgetProjenrc()(experimental) Projenrc component.-
Methods inherited from class io.github.cdklabs.projen.github.GitHubProject
annotateGenerated, getAutoApprove, getDevContainer, getGithub, getGitpod, getProjectType, getVscode
-
Methods inherited from class io.github.cdklabs.projen.Project
addExcludeFromCleanup, addGitIgnore, addPackageIgnore, addTask, addTask, addTip, getBuildTask, getCommitGenerated, getCompileTask, getComponents, getDefaultTask, getDeps, getEjected, getFiles, getGitattributes, getGitignore, getInitProject, getLogger, getName, getOutdir, getPackageTask, getParent, getPostCompileTask, getPreCompileTask, getProjectBuild, getProjenCommand, getRoot, getSubprojects, getTasks, getTestTask, isProject, of, postSynthesize, preSynthesize, removeTask, runTaskCommand, synth, tryFindFile, tryFindJsonFile, tryFindObjectFile, tryRemoveFile
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
JavaProject
protected JavaProject(software.amazon.jsii.JsiiObjectRef objRef)
-
JavaProject
protected JavaProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
JavaProject
@Stability(Experimental) public JavaProject(@NotNull JavaProjectOptions options)- Parameters:
options- This parameter is required.
-
-
Method Detail
-
addDependency
@Stability(Experimental) public void addDependency(@NotNull String spec)(experimental) Adds a runtime dependency.- Parameters:
spec- Format<groupId>/<artifactId>@<semver>. This parameter is required.
-
addPlugin
@Stability(Experimental) @NotNull public Dependency addPlugin(@NotNull String spec, @Nullable PluginOptions options)
(experimental) Adds a build plugin to the pom.The plug in is also added as a BUILD dep to the project.
- Parameters:
spec- dependency spec (group/artifact@version). This parameter is required.options- plugin options.
-
addPlugin
@Stability(Experimental) @NotNull public Dependency addPlugin(@NotNull String spec)
(experimental) Adds a build plugin to the pom.The plug in is also added as a BUILD dep to the project.
- Parameters:
spec- dependency spec (group/artifact@version). This parameter is required.
-
addTestDependency
@Stability(Experimental) public void addTestDependency(@NotNull String spec)(experimental) Adds a test dependency.- Parameters:
spec- Format<groupId>/<artifactId>@<semver>. This parameter is required.
-
getCompile
@Stability(Experimental) @NotNull public MavenCompile getCompile()
(experimental) Compile component.
-
getDistdir
@Stability(Experimental) @NotNull public String getDistdir()
(experimental) Maven artifact output directory.
-
getPackaging
@Stability(Experimental) @NotNull public MavenPackaging getPackaging()
(experimental) Packaging component.
-
getPom
@Stability(Experimental) @NotNull public Pom getPom()
(experimental) API for managingpom.xml.
-
getJunit
@Stability(Experimental) @Nullable public Junit getJunit()
(experimental) JUnit component.
-
getProjenrc
@Stability(Experimental) @Nullable public Projenrc getProjenrc()
(experimental) Projenrc component.
-
-