io.github.cdklabs.projen.Projects Maven / Gradle / Ivy
Show all versions of projen Show documentation
package io.github.cdklabs.projen;
/**
* (experimental) Programmatic API for projen.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-11-15T17:03:54.837Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.projen.$Module.class, fqn = "projen.Projects")
public class Projects extends software.amazon.jsii.JsiiObject {
protected Projects(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Projects(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* (experimental) Creates a new project with defaults.
*
* This function creates the project type in-process (with in VM) and calls
* .synth()
on it (if options.synth
is not false
).
*
* At the moment, it also generates a .projenrc.js
file with the same code
* that was just executed. In the future, this will also be done by the project
* type, so we can easily support multiple languages of projenrc.
*
* An environment variable (PROJEN_CREATE_PROJECT=true) is set within the VM
* so that custom project types can detect whether the current synthesis is the
* result of a new project creation (and take additional steps accordingly)
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static void createProject(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.CreateProjectOptions options) {
software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.projen.Projects.class, "createProject", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
}