bkenn
inline operator fun <reified T: Task> KClass<T>.invoke(crossinline op: T.() -> Unit) { tasks.withType(java) { op() } } KotlinCompile::class { kotlinOptions.jvmTarget = "1.8" } DokkaTask::class { outputFormat = "html" outputDirectory = "$buildDir/docs" }
alex2069
inline fun <reified T: Task> task(crossinline body: T.() -> Unit) { tasks.withType(T::class.java) { body(this) } }
A modern programming language that makes developers happier.