Package io.github.cdklabs.projen.java
Class Projenrc.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.java.Projenrc.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Projenrcbuild()Projenrc.BuilderclassName(String className)(experimental) The name of the Java class which contains themain()method for projen.static Projenrc.Buildercreate(Project project, Pom pom)Projenrc.BuilderprojenVersion(String projenVersion)(experimental) The projen version to use.Projenrc.BuildertestScope(Boolean testScope)(experimental) Defines projenrc under the test scope instead of the main scope, which is reserved to the app.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static Projenrc.Builder create(Project project, Pom pom)
- Parameters:
project- This parameter is required.pom- This parameter is required.- Returns:
- a new instance of
Projenrc.Builder.
-
className
@Stability(Experimental) public Projenrc.Builder className(String className)
(experimental) The name of the Java class which contains themain()method for projen.Default: "projenrc"
- Parameters:
className- The name of the Java class which contains themain()method for projen. This parameter is required.- Returns:
this
-
projenVersion
@Stability(Experimental) public Projenrc.Builder projenVersion(String projenVersion)
(experimental) The projen version to use.Default: - current version
- Parameters:
projenVersion- The projen version to use. This parameter is required.- Returns:
this
-
testScope
@Stability(Experimental) public Projenrc.Builder testScope(Boolean testScope)
(experimental) Defines projenrc under the test scope instead of the main scope, which is reserved to the app.This means that projenrc will be under
src/test/java/projenrc.javaand projen will be defined as a test dependency. This enforces that application code does not take a dependency on projen code.If this is disabled, projenrc should be under
src/main/java/projenrc.java.Default: true
- Parameters:
testScope- Defines projenrc under the test scope instead of the main scope, which is reserved to the app. This parameter is required.- Returns:
this
-
-