There is no way to do it, but it is not the best way do it in Gradle build. New Kotlin/JS Gradle plugin will run all the required things and will open browser when you call
./gradlew run
.
New Kotlin/JS Gradle plugin will replace Kotlin Frontend plugin.
n
Nikky
12/07/2019, 7:28 PM
so.. should i use multiplatform plugin in one project with different sourcesets?
or should i do subprojects with specific plugins? eg. js / jvm
s
snrostov
12/10/2019, 8:44 AM
It is better to use the MPP plugin when you want to share code between platforms. If you have js-only Kotlin code, then it is better to use the new Kotlin/JS Gradle plugin.
About the future: we have plans for a unified Gradle plugin, but there are some technical issues. Anyway, in the future, it should be only one Kotlin Gradle plugin.