https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

ehubbard

11/21/2018, 6:19 PM
Has anyone tried to use the kotlin-frontend-plugin plugin alongside the multiplatform plugin? I dont' think they were meant to work together...
j

josephivie

11/21/2018, 8:05 PM
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

hiperbou

11/22/2018, 10:00 AM
@ehubbard I tried without success. 😞
h

h0tk3y

11/22/2018, 11:49 AM
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

josephivie

11/22/2018, 6:00 PM
@h0tk3y I was wondering how you’d specify to Gradle that you need a certain target. Automatic is pretty nifty! Thanks!
4 Views