Update KotlinJsDce task to use compiler options

^KT-27301 In Progress
This commit is contained in:
Yahor Berdnikau
2022-09-12 12:12:49 +02:00
parent 6de55d5246
commit 4881e32e44
3 changed files with 55 additions and 9 deletions
@@ -0,0 +1,24 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.tasks
import org.gradle.api.Action
import org.gradle.api.Task
import org.gradle.api.tasks.Nested
import org.jetbrains.kotlin.gradle.dsl.CompilerCommonToolOptions
interface KotlinToolTask<out TO : CompilerCommonToolOptions> : Task {
@get:Nested
val toolOptions: TO
fun toolOptions(configure: TO.() -> Unit) {
configure(toolOptions)
}
fun toolOptions(configure: Action<in TO>) {
configure.execute(toolOptions)
}
}