Creates dummy instances of Project which you can use in testing custom task and plugin implementations.
To create a project instance:
ProjectBuilder instance by calling builder().Project instance.You can reuse a builder to create multiple Project instances.
| Type | Name and description |
|---|---|
Project |
build()Creates the project. |
static ProjectBuilder |
builder()Creates a project builder. |
ProjectBuilder |
withName(String name)Specifies the name for the project |
ProjectBuilder |
withParent(Project parent)Specifies the parent project. |
ProjectBuilder |
withProjectDir(File dir)Specifies the project directory for the project to build. |
Creates the project.
Creates a project builder.
Specifies the name for the project
name - project nameSpecifies the parent project. Use it to create multi-module projects.
parent - parent projectSpecifies the project directory for the project to build.
dir - The project directory