[Gradle, JS] Rename of DukatTaskss
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 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.
|
||||
*/
|
||||
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 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.
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ internal class DukatCompilationResolverPlugin(
|
||||
init {
|
||||
compilation.defaultSourceSet.kotlin.srcDir(npmProject.externalsDir)
|
||||
|
||||
val task = project.registerTask<PackageJsonDukatTask>(taskName) {
|
||||
val task = project.registerTask<DukatTask>(taskName) {
|
||||
it.compilation = compilation
|
||||
it.group = NodeJsRootPlugin.TASKS_GROUP_NAME
|
||||
it.description = "Generate Kotlin/JS external declarations for .d.ts files in ${compilation}"
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
|
||||
import org.jetbrains.kotlin.gradle.targets.js.npm.npmProject
|
||||
import java.io.File
|
||||
|
||||
open class PackageJsonDukatTask : AbstractDukatTask() {
|
||||
open class DukatTask : AbstractDukatTask() {
|
||||
private val nodeJs get() = NodeJsRootPlugin.apply(project.rootProject)
|
||||
|
||||
@get:Internal
|
||||
Reference in New Issue
Block a user