mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Simplify.
This commit is contained in:
parent
e3099f8d12
commit
1126c87845
1 changed files with 1 additions and 6 deletions
|
@ -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() }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue