Class JavaProjectOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.java.JavaProjectOptions.Jsii$Proxy
-
- All Implemented Interfaces:
GitHubProjectOptions,JavaProjectCommonOptions,JavaProjectOptions,PomOptions,ProjectOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- JavaProjectOptions
@Stability(Experimental) @Internal public static final class JavaProjectOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements JavaProjectOptions
An implementation forJavaProjectOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.java.JavaProjectOptions
JavaProjectOptions.Builder, JavaProjectOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(JavaProjectOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theJavaProjectOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)StringgetArtifactId()(experimental) The artifactId is generally the name that the project is known by.AutoApproveOptionsgetAutoApproveOptions()(experimental) Enable and configure the 'auto approve' workflow.BooleangetAutoMerge()(experimental) Enable automatic merging on GitHub.AutoMergeOptionsgetAutoMergeOptions()(experimental) Configure options for automatic merging on GitHub.BooleangetClobber()(experimental) Add aclobbertask which resets the repo to origin.BooleangetCommitGenerated()(experimental) Whether to commit the managed files by default.MavenCompileOptionsgetCompileOptions()(experimental) Compile options.List<String>getDeps()(experimental) List of runtime dependencies for this project.StringgetDescription()(experimental) Description of a project is always good.BooleangetDevContainer()(experimental) Add a VSCode development environment (used for GitHub Codespaces).StringgetDistdir()(experimental) Final artifact output directory.BooleangetGithub()(experimental) Enable GitHub integration.GitHubOptionsgetGithubOptions()(experimental) Options for GitHub integration.IgnoreFileOptionsgetGitIgnoreOptions()(experimental) Configuration options for .gitignore file.GitOptionsgetGitOptions()(experimental) Configuration options for git.BooleangetGitpod()(experimental) Add a Gitpod development environment.StringgetGroupId()(experimental) This is generally unique amongst an organization or a project.BooleangetJunit()(experimental) Include junit tests.JunitOptionsgetJunitOptions()(experimental) junit options.LoggerOptionsgetLogging()(experimental) Configure logging options such as verbosity.BooleangetMergify()(deprecated) Whether mergify should be enabled on this repository or not.MergifyOptionsgetMergifyOptions()(deprecated) Options for mergify.StringgetName()(experimental) This is the name of your project.StringgetOutdir()(experimental) The root directory of the project.StringgetPackaging()(experimental) Project packaging format.MavenPackagingOptionsgetPackagingOptions()(experimental) Packaging options.ProjectgetParent()(experimental) The parent project, if this project is part of a bigger project.ParentPomgetParentPom()(experimental) A Parent Pom can be used to have a child project inherit properties/plugins/ect in order to reduce duplication and keep standards across a large amount of repos.ProjectTypegetProjectType()(deprecated) Which type of project this is (library/app).StringgetProjenCommand()(experimental) The shell command to use in order to run the projen CLI.GithubCredentialsgetProjenCredentials()(experimental) Choose a method of providing GitHub API access for projen workflows.BooleangetProjenrcJava()(experimental) Use projenrc in java.ProjenrcOptionsgetProjenrcJavaOptions()(experimental) Options related to projenrc in java.BooleangetProjenrcJson()(experimental) Generate (once) .projenrc.json (in JSON).ProjenrcJsonOptionsgetProjenrcJsonOptions()(experimental) Options for .projenrc.json.StringgetProjenTokenSecret()(deprecated) The name of a secret which includes a GitHub Personal Access Token to be used by projen workflows.SampleReadmePropsgetReadme()(experimental) The README setup.BooleangetRenovatebot()(experimental) Use renovatebot to handle dependency upgrades.RenovatebotOptionsgetRenovatebotOptions()(experimental) Options for renovatebot.BooleangetSample()(experimental) Include sample code and test if the relevant directories don't exist.StringgetSampleJavaPackage()(experimental) The java package to use for the code sample.BooleangetStale()(experimental) Auto-close of stale issues and pull request.StaleOptionsgetStaleOptions()(experimental) Auto-close stale issues and pull requests.List<String>getTestDeps()(experimental) List of test dependencies for this project.StringgetUrl()(experimental) The URL, like the name, is not required.StringgetVersion()(experimental) This is the last piece of the naming puzzle.BooleangetVscode()(experimental) Enable VSCode integration.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(JavaProjectOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theJavaProjectOptions.Builder.
-
-
Method Detail
-
getSample
public final Boolean getSample()
Description copied from interface:JavaProjectOptions(experimental) Include sample code and test if the relevant directories don't exist.Default: true
- Specified by:
getSamplein interfaceJavaProjectOptions
-
getSampleJavaPackage
public final String getSampleJavaPackage()
Description copied from interface:JavaProjectOptions(experimental) The java package to use for the code sample.Default: "org.acme"
- Specified by:
getSampleJavaPackagein interfaceJavaProjectOptions
-
getCompileOptions
public final MavenCompileOptions getCompileOptions()
Description copied from interface:JavaProjectCommonOptions(experimental) Compile options.Default: - defaults
- Specified by:
getCompileOptionsin interfaceJavaProjectCommonOptions
-
getDeps
public final List<String> getDeps()
Description copied from interface:JavaProjectCommonOptions(experimental) List of runtime dependencies for this project.Dependencies use the format:
<groupId>/<artifactId>@<semver>Additional dependencies can be added via
project.addDependency().Default: []
- Specified by:
getDepsin interfaceJavaProjectCommonOptions
-
getDistdir
public final String getDistdir()
Description copied from interface:JavaProjectCommonOptions(experimental) Final artifact output directory.Default: "dist/java"
- Specified by:
getDistdirin interfaceJavaProjectCommonOptions
-
getJunit
public final Boolean getJunit()
Description copied from interface:JavaProjectCommonOptions(experimental) Include junit tests.Default: true
- Specified by:
getJunitin interfaceJavaProjectCommonOptions
-
getJunitOptions
public final JunitOptions getJunitOptions()
Description copied from interface:JavaProjectCommonOptions(experimental) junit options.Default: - defaults
- Specified by:
getJunitOptionsin interfaceJavaProjectCommonOptions
-
getPackagingOptions
public final MavenPackagingOptions getPackagingOptions()
Description copied from interface:JavaProjectCommonOptions(experimental) Packaging options.Default: - defaults
- Specified by:
getPackagingOptionsin interfaceJavaProjectCommonOptions
-
getProjenrcJava
public final Boolean getProjenrcJava()
Description copied from interface:JavaProjectCommonOptions(experimental) Use projenrc in java.This will install
projenas a java dependency and will add asynthtask which will compile & executemain()fromsrc/main/java/projenrc.java.Default: true
- Specified by:
getProjenrcJavain interfaceJavaProjectCommonOptions
-
getProjenrcJavaOptions
public final ProjenrcOptions getProjenrcJavaOptions()
Description copied from interface:JavaProjectCommonOptions(experimental) Options related to projenrc in java.Default: - default options
- Specified by:
getProjenrcJavaOptionsin interfaceJavaProjectCommonOptions
-
getTestDeps
public final List<String> getTestDeps()
Description copied from interface:JavaProjectCommonOptions(experimental) List of test dependencies for this project.Dependencies use the format:
<groupId>/<artifactId>@<semver>Additional dependencies can be added via
project.addTestDependency().Default: []
- Specified by:
getTestDepsin interfaceJavaProjectCommonOptions
-
getAutoApproveOptions
public final AutoApproveOptions getAutoApproveOptions()
Description copied from interface:GitHubProjectOptions(experimental) Enable and configure the 'auto approve' workflow.Default: - auto approve is disabled
- Specified by:
getAutoApproveOptionsin interfaceGitHubProjectOptions
-
getAutoMerge
public final Boolean getAutoMerge()
Description copied from interface:GitHubProjectOptions(experimental) Enable automatic merging on GitHub.Has no effect if
github.mergifyis set to false.Default: true
- Specified by:
getAutoMergein interfaceGitHubProjectOptions
-
getAutoMergeOptions
public final AutoMergeOptions getAutoMergeOptions()
Description copied from interface:GitHubProjectOptions(experimental) Configure options for automatic merging on GitHub.Has no effect if
github.mergifyorautoMergeis set to false.Default: - see defaults in `AutoMergeOptions`
- Specified by:
getAutoMergeOptionsin interfaceGitHubProjectOptions
-
getClobber
public final Boolean getClobber()
Description copied from interface:GitHubProjectOptions(experimental) Add aclobbertask which resets the repo to origin.Default: - true, but false for subprojects
- Specified by:
getClobberin interfaceGitHubProjectOptions
-
getDevContainer
public final Boolean getDevContainer()
Description copied from interface:GitHubProjectOptions(experimental) Add a VSCode development environment (used for GitHub Codespaces).Default: false
- Specified by:
getDevContainerin interfaceGitHubProjectOptions
-
getGithub
public final Boolean getGithub()
Description copied from interface:GitHubProjectOptions(experimental) Enable GitHub integration.Enabled by default for root projects. Disabled for non-root projects.
Default: true
- Specified by:
getGithubin interfaceGitHubProjectOptions
-
getGithubOptions
public final GitHubOptions getGithubOptions()
Description copied from interface:GitHubProjectOptions(experimental) Options for GitHub integration.Default: - see GitHubOptions
- Specified by:
getGithubOptionsin interfaceGitHubProjectOptions
-
getGitpod
public final Boolean getGitpod()
Description copied from interface:GitHubProjectOptions(experimental) Add a Gitpod development environment.Default: false
- Specified by:
getGitpodin interfaceGitHubProjectOptions
-
getMergify
public final Boolean getMergify()
Description copied from interface:GitHubProjectOptions(deprecated) Whether mergify should be enabled on this repository or not.Default: true
- Specified by:
getMergifyin interfaceGitHubProjectOptions
-
getMergifyOptions
public final MergifyOptions getMergifyOptions()
Description copied from interface:GitHubProjectOptions(deprecated) Options for mergify.Default: - default options
- Specified by:
getMergifyOptionsin interfaceGitHubProjectOptions
-
getProjectType
public final ProjectType getProjectType()
Description copied from interface:GitHubProjectOptions(deprecated) Which type of project this is (library/app).Default: ProjectType.UNKNOWN
- Specified by:
getProjectTypein interfaceGitHubProjectOptions
-
getProjenCredentials
public final GithubCredentials getProjenCredentials()
Description copied from interface:GitHubProjectOptions(experimental) Choose a method of providing GitHub API access for projen workflows.Default: - use a personal access token named PROJEN_GITHUB_TOKEN
- Specified by:
getProjenCredentialsin interfaceGitHubProjectOptions
-
getProjenTokenSecret
public final String getProjenTokenSecret()
Description copied from interface:GitHubProjectOptions(deprecated) The name of a secret which includes a GitHub Personal Access Token to be used by projen workflows.This token needs to have the
repo,workflowsandpackagesscope.Default: "PROJEN_GITHUB_TOKEN"
- Specified by:
getProjenTokenSecretin interfaceGitHubProjectOptions
-
getReadme
public final SampleReadmeProps getReadme()
Description copied from interface:GitHubProjectOptions(experimental) The README setup.Default: - { filename: 'README.md', contents: '# replace this' }
Example:
"{ filename: 'readme.md', contents: '# title' }"- Specified by:
getReadmein interfaceGitHubProjectOptions
-
getStale
public final Boolean getStale()
Description copied from interface:GitHubProjectOptions(experimental) Auto-close of stale issues and pull request.See
staleOptionsfor options.Default: false
- Specified by:
getStalein interfaceGitHubProjectOptions
-
getStaleOptions
public final StaleOptions getStaleOptions()
Description copied from interface:GitHubProjectOptions(experimental) Auto-close stale issues and pull requests.To disable set
staletofalse.Default: - see defaults in `StaleOptions`
- Specified by:
getStaleOptionsin interfaceGitHubProjectOptions
-
getVscode
public final Boolean getVscode()
Description copied from interface:GitHubProjectOptions(experimental) Enable VSCode integration.Enabled by default for root projects. Disabled for non-root projects.
Default: true
- Specified by:
getVscodein interfaceGitHubProjectOptions
-
getName
public final String getName()
Description copied from interface:ProjectOptions(experimental) This is the name of your project.Default: $BASEDIR
- Specified by:
getNamein interfaceProjectOptions
-
getCommitGenerated
public final Boolean getCommitGenerated()
Description copied from interface:ProjectOptions(experimental) Whether to commit the managed files by default.Default: true
- Specified by:
getCommitGeneratedin interfaceProjectOptions
-
getGitIgnoreOptions
public final IgnoreFileOptions getGitIgnoreOptions()
Description copied from interface:ProjectOptions(experimental) Configuration options for .gitignore file.- Specified by:
getGitIgnoreOptionsin interfaceProjectOptions
-
getGitOptions
public final GitOptions getGitOptions()
Description copied from interface:ProjectOptions(experimental) Configuration options for git.- Specified by:
getGitOptionsin interfaceProjectOptions
-
getLogging
public final LoggerOptions getLogging()
Description copied from interface:ProjectOptions(experimental) Configure logging options such as verbosity.Default: {}
- Specified by:
getLoggingin interfaceProjectOptions
-
getOutdir
public final String getOutdir()
Description copied from interface:ProjectOptions(experimental) The root directory of the project.Relative to this directory, all files are synthesized.
If this project has a parent, this directory is relative to the parent directory and it cannot be the same as the parent or any of it's other subprojects.
Default: "."
- Specified by:
getOutdirin interfaceProjectOptions
-
getParent
public final Project getParent()
Description copied from interface:ProjectOptions(experimental) The parent project, if this project is part of a bigger project.- Specified by:
getParentin interfaceProjectOptions
-
getProjenCommand
public final String getProjenCommand()
Description copied from interface:ProjectOptions(experimental) The shell command to use in order to run the projen CLI.Can be used to customize in special environments.
Default: "npx projen"
- Specified by:
getProjenCommandin interfaceProjectOptions
-
getProjenrcJson
public final Boolean getProjenrcJson()
Description copied from interface:ProjectOptions(experimental) Generate (once) .projenrc.json (in JSON). Set tofalsein order to disable .projenrc.json generation.Default: false
- Specified by:
getProjenrcJsonin interfaceProjectOptions
-
getProjenrcJsonOptions
public final ProjenrcJsonOptions getProjenrcJsonOptions()
Description copied from interface:ProjectOptions(experimental) Options for .projenrc.json.Default: - default options
- Specified by:
getProjenrcJsonOptionsin interfaceProjectOptions
-
getRenovatebot
public final Boolean getRenovatebot()
Description copied from interface:ProjectOptions(experimental) Use renovatebot to handle dependency upgrades.Default: false
- Specified by:
getRenovatebotin interfaceProjectOptions
-
getRenovatebotOptions
public final RenovatebotOptions getRenovatebotOptions()
Description copied from interface:ProjectOptions(experimental) Options for renovatebot.Default: - default options
- Specified by:
getRenovatebotOptionsin interfaceProjectOptions
-
getArtifactId
public final String getArtifactId()
Description copied from interface:PomOptions(experimental) The artifactId is generally the name that the project is known by.Although the groupId is important, people within the group will rarely mention the groupId in discussion (they are often all be the same ID, such as the MojoHaus project groupId: org.codehaus.mojo). It, along with the groupId, creates a key that separates this project from every other project in the world (at least, it should :) ). Along with the groupId, the artifactId fully defines the artifact's living quarters within the repository. In the case of the above project, my-project lives in $M2_REPO/org/codehaus/mojo/my-project.
Default: "my-app"
- Specified by:
getArtifactIdin interfacePomOptions
-
getGroupId
public final String getGroupId()
Description copied from interface:PomOptions(experimental) This is generally unique amongst an organization or a project.For example, all core Maven artifacts do (well, should) live under the groupId org.apache.maven. Group ID's do not necessarily use the dot notation, for example, the junit project. Note that the dot-notated groupId does not have to correspond to the package structure that the project contains. It is, however, a good practice to follow. When stored within a repository, the group acts much like the Java packaging structure does in an operating system. The dots are replaced by OS specific directory separators (such as '/' in Unix) which becomes a relative directory structure from the base repository. In the example given, the org.codehaus.mojo group lives within the directory $M2_REPO/org/codehaus/mojo.
Default: "org.acme"
- Specified by:
getGroupIdin interfacePomOptions
-
getVersion
public final String getVersion()
Description copied from interface:PomOptions(experimental) This is the last piece of the naming puzzle.groupId:artifactId denotes a single project but they cannot delineate which incarnation of that project we are talking about. Do we want the junit:junit of 2018 (version 4.12), or of 2007 (version 3.8.2)? In short: code changes, those changes should be versioned, and this element keeps those versions in line. It is also used within an artifact's repository to separate versions from each other. my-project version 1.0 files live in the directory structure $M2_REPO/org/codehaus/mojo/my-project/1.0.
Default: "0.1.0"
- Specified by:
getVersionin interfacePomOptions
-
getDescription
public final String getDescription()
Description copied from interface:PomOptions(experimental) Description of a project is always good.Although this should not replace formal documentation, a quick comment to any readers of the POM is always helpful.
Default: undefined
- Specified by:
getDescriptionin interfacePomOptions
-
getPackaging
public final String getPackaging()
Description copied from interface:PomOptions(experimental) Project packaging format.Default: "jar"
- Specified by:
getPackagingin interfacePomOptions
-
getParentPom
public final ParentPom getParentPom()
Description copied from interface:PomOptions(experimental) A Parent Pom can be used to have a child project inherit properties/plugins/ect in order to reduce duplication and keep standards across a large amount of repos.Default: undefined
- Specified by:
getParentPomin interfacePomOptions
-
getUrl
public final String getUrl()
Description copied from interface:PomOptions(experimental) The URL, like the name, is not required.This is a nice gesture for projects users, however, so that they know where the project lives.
Default: undefined
- Specified by:
getUrlin interfacePomOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-