In Kotlin 1.2.61 it was possible to have a Gradle dependency from a kotlin-jvm module to a kotlin-js module.
This is useful for including the generated js files in a self-contained jar to serve them as static resources.
However, as of Kotlin 1.2.70 there is a restriction that prevents adding a dependency from a kotlin-jvm module to a kotlin-js module, see: issue.
What is the supported way to make sure that a kotlin-js module gets built before the a kotlin-jvm module, so that the kotlin-js dist files can be included in the kotlin-jvm module (presumably without adding a dependency between them)?