-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Another pass at Kotlin Gradle MPP 1.3 #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Relying on the old Gradle plugin is a major roadblock at this point since I guess all tooling updates will be targeting the new plugin from now on. This feels like a lot of work, mainly because of how different the new plugin is, and how limiting it feels when facing non-standard use-cases. Let's use this PR as the central point for the migration efforts, please contribute by targeting this branch. |
Using |
Interesting, we've got failing Native tests. Reporting seems to be broken in the plugin, so I can only see the tests that failed. Here are the ones that fail on my Mac:
|
I believe this is because Kotlin/Native changed ByteString to String UTF-8 translation with 1.3. Changing to use our internal UTF-8 translation for Kotlin/Native like Kotlin/JS in See #545 |
Shelving this until 1.3.20, looks like the DSL will change. |
00af041
to
cc46fec
Compare
The publishing setup I ended up with actually publishes artifacts for all supported platforms. I can figure out how to disable this, but I'd be curious to try the current setup against a few multiplatform samples. |
I think this is ready for testing! Would love some help in making sure I haven't missed anything and everything is still being built, tested and published properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Built this on a Windows and Fedora machine I have access to. Both were successful.
* Basic setup * Ignore failing test * Gradle 5.0 * Better native config * Fix jvm tests * JS testing setup * Native config * Use EAP dependencies * Japicmp setup * Correct path to japicmp report * Basic JVM + AnimalSniffer setup * Enable samples module * Use jvmWithJava for running Java tests * Include more Native platforms to force test task generation * Use internal UTF-8 decoder for Kotlin/Native * Kotlin 1.3.20 * Gradle 5.1 * Move JMH setup into a separate module * Properly configure jmhJar task * Remove old jvm build.gradle * Replace publishing plugin with SQLDelight's custom script * Use default artifactId for JVM target * Revert JVM build.gradle rename, use new DSL for defining targets * Remove old module definitions in settings * Feedback fixes
https://youtrack.jetbrains.com/issue/KT-26547,https://youtrack.jetbrains.com/issue/KT-29039, https://youtrack.jetbrains.com/issue/KT-29162)Closes #537