From 261be8938b1ed3f59c533c2408b709b3561dc516 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Fri, 27 Nov 2020 22:50:15 +0300 Subject: [PATCH] Fix process JS resources --- src/main/kotlin/ru/mipt/npm/gradle/internal/common.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/kotlin/ru/mipt/npm/gradle/internal/common.kt b/src/main/kotlin/ru/mipt/npm/gradle/internal/common.kt index 2745658..6eede47 100644 --- a/src/main/kotlin/ru/mipt/npm/gradle/internal/common.kt +++ b/src/main/kotlin/ru/mipt/npm/gradle/internal/common.kt @@ -36,24 +36,19 @@ internal fun Copy.fromDependencies(configurationName: String) = project.afterEva val projectDeps = configuration.allDependencies.filterIsInstance().map { it.dependencyProject } - into(buildDir.resolve("processedResources/js")) projectDeps.forEach { dep -> dep.afterEvaluate { dep.pluginManager.withPlugin("org.jetbrains.kotlin.multiplatform") { dep.tasks.findByName("jsProcessResources")?.let { task -> dependsOn(task) from(task) - //from(dep.buildDir.resolve("processedResources/js")) } - //from(dep.buildDir.resolve("processedResources/js")) } dep.pluginManager.withPlugin("org.jetbrains.kotlin.js") { dep.tasks.findByName("processResources")?.let { task -> dependsOn(task) from(task) - //from(dep.buildDir.resolve("processedResources/js")) } - // from(dep.buildDir.resolve("processedResources/js")) } } }