booster / com.didiglobal.booster.gradle / org.gradle.api.Project

Extensions for org.gradle.api.Project

aapt2Enabled

val Project.aapt2Enabled: Boolean

getAndroid

fun <T : BaseExtension> Project.getAndroid(): T

getJars

Returns the jar files which could be the outputs of the jar task or createFullJar task

fun Project.getJars(variant: BaseVariant? = null): Set<File>

getJarTaskProviders

fun Project.getJarTaskProviders(variant: BaseVariant? = null): Collection<TaskProvider<out Task>>

getProperty

fun <T> Project.getProperty(name: String, defaultValue: T): T

getResolvedArtifactResults

fun Project.getResolvedArtifactResults(transitive: Boolean = true, variant: BaseVariant? = null): Set<ResolvedArtifactResult>

getUpstreamProjects

fun Project.getUpstreamProjects(transitive: Boolean = true, variant: BaseVariant? = null): Set<Project>

gradleVersion

The gradle version

val Project.gradleVersion: Revision

isAapt2Enabled

val Project.isAapt2Enabled: Boolean

isAndroid

val Project.isAndroid: Boolean

isJava

val Project.isJava: Boolean

isJavaLibrary

val Project.isJavaLibrary: Boolean