1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Simplify.

This commit is contained in:
Cedric Beust 2015-11-01 17:08:30 -08:00
parent e3099f8d12
commit 1126c87845

View file

@ -121,10 +121,5 @@ class JavaCompilerConfig {
}
@Directive
fun Project.javaCompiler(init: JavaCompilerConfig.() -> Unit) : JavaCompilerConfig {
with (JavaCompilerConfig()) {
init()
return this
}
}
fun Project.javaCompiler(init: JavaCompilerConfig.() -> Unit) = JavaCompilerConfig().run { init() }