Skip to content

Compatibility with Gradle TestKitopensavvy.prepared.compat.gradleProject

Project

class Project

Represents a Gradle project.

To access an instance of this type, use Gradle.rootProject or Gradle.project.

Properties

buildDir

val buildDir: Prepared<Path>

The build directory for this Project.

buildGroovy

val Project.buildGroovy: Prepared<Path>

Accessor for the build.gradle file.

buildKts

val Project.buildKts: Prepared<Path>

Accessor for the build.gradle.kts file.

dir

val dir: Prepared<Path>

The subdirectory of Gradle.dir in which this project is located.

Functions

buildGroovy

suspend fun Project.buildGroovy(text: String)

Helper function to write the build.gradle file.

buildKts

suspend fun Project.buildKts(text: String)

Helper function to write the build.gradle.kts file.