Has anyone tried to use the kotlin-frontend-plugin...
# multiplatform
e
Has anyone tried to use the kotlin-frontend-plugin plugin alongside the multiplatform plugin? I dont' think they were meant to work together...
j
In the mean time, you could probably make a standalone Gradle subproject that has a dependency on the multiplatform module. I dunno exactly how that would work though.
h
@ehubbard I tried without success. 😞
h
What @joseph_ivie described should actually work fine. If you have a multiplatform project, say,
:lib
, and you want to use one of its targets in a single-platform project with the
kotlin2js
plugin (or any other of the Kotlin plugins), just add a
compile
dependency on
project(':lib')
. Gradle will choose an appropriate target to use, the JS one in this case.
j
@h0tk3y I was wondering how you’d specify to Gradle that you need a certain target. Automatic is pretty nifty! Thanks!