Skip to content

Commit

Permalink
Gradle, JS: don't project.getTasksByName inside task realization call…
Browse files Browse the repository at this point in the history
…back

Or project evaluation would be called

#KT-32072 Fixed

(cherry picked from commit bb0f467)
  • Loading branch information
snrostov committed Jun 30, 2019
1 parent 5605a70 commit ba192c3
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ class KotlinBrowserJs(target: KotlinJsTarget) :

project.createOrRegisterTask<KotlinWebpack>(disambiguateCamelCased("webpack")) {
val compileKotlinTask = compilation.compileKotlinTask
it.dependsOn(target.project.nodeJs.root.npmResolveTask, compileKotlinTask)
it.dependsOn(
target.project.nodeJs.root.npmResolveTask,
compileKotlinTask
)

it.compilation = compilation
it.description = "build webpack bundle"
Expand All @@ -56,7 +59,7 @@ class KotlinBrowserJs(target: KotlinJsTarget) :
it.dependsOn(
target.project.nodeJs.root.npmResolveTask,
compileKotlinTask,
project.getTasksByName(compilation.processResourcesTaskName, false)
compilation.processResourcesTaskName
)

it.bin = "webpack-dev-server"
Expand Down

0 comments on commit ba192c3

Please sign in to comment.