Update KotlinJsDce task to use compiler options
^KT-27301 In Progress
This commit is contained in:
+24
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user