common-plugin / com.cognifide.gradle.common.build / ObjectFactory

ObjectFactory

class ObjectFactory

Provides factory methods for property objects for most common cases.

Constructors

<init>

Provides factory methods for property objects for most common cases.

ObjectFactory(project: Project)

Properties

factory

val factory: ObjectFactory!

layout

val layout: ProjectLayout!

Functions

boolean

fun boolean(options: Property<Boolean>.() -> Unit = {}): Property<Boolean!>!

buildDir

fun buildDir(path: String): DirectoryProperty!

buildFile

fun buildFile(path: String): RegularFileProperty!

dir

fun dir(options: DirectoryProperty.() -> Unit = {}): DirectoryProperty!

file

fun file(options: RegularFileProperty.() -> Unit = {}): RegularFileProperty!

files

fun files(options: ConfigurableFileCollection.() -> Unit = {}): ConfigurableFileCollection!

int

fun int(options: Property<Int>.() -> Unit = {}): Property<Int!>!

list

fun <T> list(options: ListProperty<T>.() -> Unit = {}): ListProperty<T>!

long

fun long(options: Property<Long>.() -> Unit = {}): Property<Long!>!

map

fun <K, V> map(options: MapProperty<K, V>.() -> Unit = {}): MapProperty<K, V>!

projectDir

fun projectDir(path: String): DirectoryProperty!

projectFile

fun projectFile(path: String): RegularFileProperty!

provider

fun <T> provider(value: () -> T): Provider<T>!

relativeDir

fun relativeDir(dir: DirectoryProperty, path: String): DirectoryProperty!

relativeFile

fun relativeFile(dir: DirectoryProperty, path: String): RegularFileProperty!

string

fun string(options: Property<String>.() -> Unit = {}): Property<String!>!

strings

fun strings(options: ListProperty<String>.() -> Unit = {}): ListProperty<String!>!

typed

fun <T> typed(options: Property<T>.() -> Unit = {}): Property<T>!