@Stability(value=Experimental) @Internal public static final class JavaProjectOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements JavaProjectOptions
JavaProjectOptionssoftware.amazon.jsii.JsiiObject.InitializationModeJavaProjectOptions.Builder, JavaProjectOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(JavaProjectOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
JavaProjectOptions.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getArtifactId()
(experimental) The artifactId is generally the name that the project is known by.
|
AutoApproveOptions |
getAutoApproveOptions()
(experimental) Enable and configure the 'auto approve' workflow.
|
AutoMergeOptions |
getAutoMergeOptions()
(experimental) Configure options for automatic merging on GitHub.
|
Boolean |
getClobber()
(experimental) Add a `clobber` task which resets the repo to origin.
|
MavenCompileOptions |
getCompileOptions()
(experimental) Compile options.
|
List<String> |
getDeps()
(experimental) List of runtime dependencies for this project.
|
String |
getDescription()
(experimental) Description of a project is always good.
|
Boolean |
getDevContainer()
(experimental) Add a VSCode development environment (used for GitHub Codespaces).
|
String |
getDistdir()
(experimental) Final artifact output directory.
|
Boolean |
getGithub()
(experimental) Enable GitHub integration.
|
GitHubOptions |
getGithubOptions()
(experimental) Options for GitHub integration.
|
Boolean |
getGitpod()
(experimental) Add a Gitpod development environment.
|
String |
getGroupId()
(experimental) This is generally unique amongst an organization or a project.
|
Boolean |
getJunit()
(experimental) Include junit tests.
|
JunitOptions |
getJunitOptions()
(experimental) junit options.
|
LoggerOptions |
getLogging()
(experimental) Configure logging options such as verbosity.
|
Boolean |
getMergify()
(deprecated) Whether mergify should be enabled on this repository or not.
|
MergifyOptions |
getMergifyOptions()
(deprecated) Options for mergify.
|
String |
getName()
(experimental) This is the name of your project.
|
String |
getOutdir()
(experimental) The root directory of the project.
|
String |
getPackaging()
(experimental) Project packaging format.
|
MavenPackagingOptions |
getPackagingOptions()
(experimental) Packaging options.
|
Project |
getParent()
(experimental) The parent project, if this project is part of a bigger project.
|
ProjectType |
getProjectType()
(deprecated) Which type of project this is (library/app).
|
String |
getProjenCommand()
(experimental) The shell command to use in order to run the projen CLI.
|
Boolean |
getProjenrcJava()
(experimental) Use projenrc in java.
|
ProjenrcOptions |
getProjenrcJavaOptions()
(experimental) Options related to projenrc in java.
|
Boolean |
getProjenrcJson()
(experimental) Generate (once) .projenrc.json (in JSON).
|
ProjenrcOptions |
getProjenrcJsonOptions()
(experimental) Options for .projenrc.json.
|
SampleReadmeProps |
getReadme()
(experimental) The README setup.
|
Boolean |
getSample()
(experimental) Include sample code and test if the relevant directories don't exist.
|
String |
getSampleJavaPackage()
(experimental) The java package to use for the code sample.
|
Boolean |
getStale()
(experimental) Auto-close of stale issues and pull request.
|
StaleOptions |
getStaleOptions()
(experimental) Auto-close stale issues and pull requests.
|
List<String> |
getTestDeps()
(experimental) List of test dependencies for this project.
|
String |
getUrl()
(experimental) The URL, like the name, is not required.
|
String |
getVersion()
(experimental) This is the last piece of the naming puzzle.
|
Boolean |
getVscode()
(experimental) Enable VSCode integration.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(JavaProjectOptions.Builder builder)
JavaProjectOptions.Builder.public final Boolean getSample()
JavaProjectOptionsgetSample in interface JavaProjectOptionspublic final String getSampleJavaPackage()
JavaProjectOptionsDefault: "org.acme"
getSampleJavaPackage in interface JavaProjectOptionspublic final MavenCompileOptions getCompileOptions()
JavaProjectCommonOptionsDefault: - defaults
getCompileOptions in interface JavaProjectCommonOptionspublic final List<String> getDeps()
JavaProjectCommonOptions
Dependencies use the format: <groupId>/<artifactId>@<semver>
Additional dependencies can be added via project.addDependency().
Default: []
getDeps in interface JavaProjectCommonOptionspublic final String getDistdir()
JavaProjectCommonOptionsDefault: "dist/java"
getDistdir in interface JavaProjectCommonOptionspublic final Boolean getJunit()
JavaProjectCommonOptionsDefault: true
getJunit in interface JavaProjectCommonOptionspublic final JunitOptions getJunitOptions()
JavaProjectCommonOptionsDefault: - defaults
getJunitOptions in interface JavaProjectCommonOptionspublic final MavenPackagingOptions getPackagingOptions()
JavaProjectCommonOptionsDefault: - defaults
getPackagingOptions in interface JavaProjectCommonOptionspublic final Boolean getProjenrcJava()
JavaProjectCommonOptions
This will install projen as a java dependency and will add a synth task which
will compile & execute main() from src/main/java/projenrc.java.
Default: true
getProjenrcJava in interface JavaProjectCommonOptionspublic final ProjenrcOptions getProjenrcJavaOptions()
JavaProjectCommonOptionsDefault: - default options
getProjenrcJavaOptions in interface JavaProjectCommonOptionspublic final List<String> getTestDeps()
JavaProjectCommonOptions
Dependencies use the format: <groupId>/<artifactId>@<semver>
Additional dependencies can be added via project.addTestDependency().
Default: []
getTestDeps in interface JavaProjectCommonOptionspublic final AutoApproveOptions getAutoApproveOptions()
GitHubProjectOptionsDefault: - auto approve is disabled
getAutoApproveOptions in interface GitHubProjectOptionspublic final AutoMergeOptions getAutoMergeOptions()
GitHubProjectOptions
Has no effect if
github.mergify is set to false.
Default: - see defaults in `AutoMergeOptions`
getAutoMergeOptions in interface GitHubProjectOptionspublic final Boolean getClobber()
GitHubProjectOptionsDefault: true
getClobber in interface GitHubProjectOptionspublic final Boolean getDevContainer()
GitHubProjectOptionsDefault: false
getDevContainer in interface GitHubProjectOptionspublic final Boolean getGithub()
GitHubProjectOptionsEnabled by default for root projects. Disabled for non-root projects.
Default: true
getGithub in interface GitHubProjectOptionspublic final GitHubOptions getGithubOptions()
GitHubProjectOptionsDefault: - see GitHubOptions
getGithubOptions in interface GitHubProjectOptionspublic final Boolean getGitpod()
GitHubProjectOptionsDefault: false
getGitpod in interface GitHubProjectOptionspublic final Boolean getMergify()
GitHubProjectOptionsDefault: true
getMergify in interface GitHubProjectOptionspublic final MergifyOptions getMergifyOptions()
GitHubProjectOptionsDefault: - default options
getMergifyOptions in interface GitHubProjectOptionspublic final ProjectType getProjectType()
GitHubProjectOptionsDefault: ProjectType.UNKNOWN
getProjectType in interface GitHubProjectOptionspublic final SampleReadmeProps getReadme()
GitHubProjectOptionsDefault: - { filename: 'README.md', contents: '# replace this' }
Example:
// Example automatically generated from non-compiling source. May contain errors.
"{ filename: 'readme.md', contents: '# title' }"
getReadme in interface GitHubProjectOptionspublic final Boolean getStale()
GitHubProjectOptions
See staleOptions for options.
Default: true
getStale in interface GitHubProjectOptionspublic final StaleOptions getStaleOptions()
GitHubProjectOptions
To disable set stale to false.
Default: - see defaults in `StaleOptions`
getStaleOptions in interface GitHubProjectOptionspublic final Boolean getVscode()
GitHubProjectOptionsEnabled by default for root projects. Disabled for non-root projects.
Default: true
getVscode in interface GitHubProjectOptionspublic final String getName()
ProjectOptionsDefault: $BASEDIR
getName in interface ProjectOptionspublic final LoggerOptions getLogging()
ProjectOptionsDefault: {}
getLogging in interface ProjectOptionspublic final String getOutdir()
ProjectOptionsRelative 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 sub-projects.
Default: "."
getOutdir in interface ProjectOptionspublic final Project getParent()
ProjectOptionsgetParent in interface ProjectOptionspublic final String getProjenCommand()
ProjectOptionsCan be used to customize in special environments.
Default: "npx projen"
getProjenCommand in interface ProjectOptionspublic final Boolean getProjenrcJson()
ProjectOptionsDefault: false
getProjenrcJson in interface ProjectOptionspublic final ProjenrcOptions getProjenrcJsonOptions()
ProjectOptionsDefault: - default options
getProjenrcJsonOptions in interface ProjectOptionspublic final String getArtifactId()
PomOptionsAlthough 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"
getArtifactId in interface PomOptionspublic final String getGroupId()
PomOptionsFor 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"
getGroupId in interface PomOptionspublic final String getVersion()
PomOptionsgroupId: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"
getVersion in interface PomOptionspublic final String getDescription()
PomOptionsAlthough this should not replace formal documentation, a quick comment to any readers of the POM is always helpful.
Default: undefined
getDescription in interface PomOptionspublic final String getPackaging()
PomOptionsDefault: "jar"
getPackaging in interface PomOptionspublic final String getUrl()
PomOptionsThis is a nice gesture for projects users, however, so that they know where the project lives.
Default: undefined
getUrl in interface PomOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.