Compatibility with Gradle TestKit • opensavvy.prepared.compat.gradle • Project
Project¶
class Project
Represents a Gradle project.
To access an instance of this type, use Gradle.rootProject
or Gradle.project
.
Properties¶
buildDir
¶
val buildDir:
The build
directory for this Project
.
buildGroovy
¶
val Project.buildGroovy:
Accessor for the build.gradle
file.
buildKts
¶
Accessor for the build.gradle.kts
file.
dir
¶
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
¶
Helper function to write the build.gradle.kts
file.