open class ProjectBuilder
Creates dummy instances of org.gradle.api.Project which you can use in testing custom task and plugin implementations.
To create a project instance:
- Create a
ProjectBuilder instance by calling
- Optionally, configure the builder.
#build() to create the
You can reuse a builder to create multiple
ProjectBuilder implementation bundled with Gradle 3.0 and 3.1 suffers from a binary compatibility issue exposed by applying plugins compiled with Gradle 2.7 and earlier. Applying those pre-compiled plugins in a ProjectBuilder context will result in a ClassNotFoundException.