kotlin_multiplatform_gradle_demo | get Gradle to work with multiplatform Kotlin | Plugin library
kandi X-RAY | kotlin_multiplatform_gradle_demo Summary
kandi X-RAY | kotlin_multiplatform_gradle_demo Summary
My attempt to get Gradle to work with multiplatform Kotlin while using subprojects.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kotlin_multiplatform_gradle_demo
kotlin_multiplatform_gradle_demo Key Features
kotlin_multiplatform_gradle_demo Examples and Code Snippets
Community Discussions
Trending Discussions on kotlin_multiplatform_gradle_demo
QUESTION
I'm using Kotlin multi-platform (JVM & JS), which in IDEA creates three projects: demo
, demo-js
and demo-jvm
.
I would like to split the common code into more subprojects/submodules. Let's say I add commonmod
; how do I make it compile?
The error right now, for gradle run -p demo-jvm
, is:
ANSWER
Answered 2018-Jan-21 at 09:43This took a crazy amount of time, so I hope this is useful for someone!
There is a functional example on Github: kotlin_multiplatform_gradle_demo
Several sources helped, but a lot of it was trial and error, so if something is bad practise, please let me know!
For the minimal example, the structure is like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kotlin_multiplatform_gradle_demo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page