Martin Gaens
04/28/2024, 7:26 PMjsBrowserDevelopmentWebpack
gradle task. If I run the Gradle task by manually (and WITHOUT the --continuous
flag), the folder build/dist/js/developmentExecutable
gets updated with the newest .js
file and newest resources. However, if instead I run the task WITH the --continuous
flag, the task correctly says it's recompiling, however, the resulting .js
file inside build/dist/js/developmentExecutable
does not get updated. Here's the output when ran with the --continous
flag:
9:24:51 PM: Executing 'jsBrowserDevelopmentWebpack --continuous'...
> Task :jsProcessResources UP-TO-DATE
> Task :jsBrowserDevelopmentExecutableDistributeResources UP-TO-DATE
> Task :checkKotlinGradlePluginConfigurationErrors
> Task :kotlinNodeJsSetup UP-TO-DATE
> Task :kotlinNpmCachesSetup
> Task :kotlinRestoreYarnLock UP-TO-DATE
> Task :kotlinYarnSetup UP-TO-DATE
> Task :jsPackageJson UP-TO-DATE
> Task :jsTestPackageJson UP-TO-DATE
> Task :jsPublicPackageJson UP-TO-DATE
> Task :jsTestPublicPackageJson UP-TO-DATE
> Task :packageJsonUmbrella UP-TO-DATE
> Task :rootPackageJson UP-TO-DATE
> Task :kotlinNpmInstall UP-TO-DATE
> Task :kotlinStoreYarnLock UP-TO-DATE
> Task :compileKotlinJs
> Task :jsMainClasses
> Task :compileDevelopmentExecutableKotlinJs
> Task :jsDevelopmentExecutableCompileSync
> Task :jsBrowserDevelopmentWebpack
BUILD SUCCESSFUL in 574ms
18 actionable tasks: 6 executed, 12 up-to-date
Waiting for changes to input files... (ctrl-d to exit)
modified: /home/djsushi/Dev/Kt/sumus-extension/src/jsMain/kotlin/Main.kt
Change detected, executing build...
> Task :jsProcessResources UP-TO-DATE
> Task :jsBrowserDevelopmentExecutableDistributeResources UP-TO-DATE
> Task :checkKotlinGradlePluginConfigurationErrors
> Task :kotlinNodeJsSetup UP-TO-DATE
> Task :kotlinNpmCachesSetup
> Task :kotlinRestoreYarnLock UP-TO-DATE
> Task :kotlinYarnSetup UP-TO-DATE
> Task :jsPackageJson UP-TO-DATE
> Task :jsTestPackageJson UP-TO-DATE
> Task :jsPublicPackageJson UP-TO-DATE
> Task :jsTestPublicPackageJson UP-TO-DATE
> Task :packageJsonUmbrella UP-TO-DATE
> Task :rootPackageJson UP-TO-DATE
> Task :kotlinNpmInstall UP-TO-DATE
> Task :kotlinStoreYarnLock UP-TO-DATE
> Task :compileKotlinJs
> Task :jsMainClasses
> Task :compileDevelopmentExecutableKotlinJs
> Task :jsDevelopmentExecutableCompileSync
> Task :jsBrowserDevelopmentWebpack
BUILD SUCCESSFUL in 480ms
18 actionable tasks: 6 executed, 12 up-to-date
Waiting for changes to input files... (ctrl-d to exit)
As you can see, it correctly detects the changed file, then it runs everything from compileKotlinJs
up to jsBrowserDevelopmentWebpack
, but the final .js
file is not updated...
Edit: it seems that everything gets updated correctly up to jsDevelopmentExecutableCompileSync
, because the directory build/compileSync/js/main/developmentExecutable/kotlin
gets updated with the latest .js
file content. So, it seems to me that the last step (actually merging these intermediate files and putting them in a distributed single .js
) seems to be the issue hereEdoardo Luppi
04/29/2024, 9:40 AMMartin Gaens
04/29/2024, 4:05 PM