Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

K/N Gradle plugin 1.3.0-rc-146 does not pass -Xplugin arguments to compiler #2210

Closed
sandwwraith opened this issue Oct 12, 2018 · 2 comments
Closed

Comments

@sandwwraith
Copy link
Member

sandwwraith commented Oct 12, 2018

Applying kotlin compiler plugins in build.gradle file, like apply plugin: 'kotlinx.serialization', does not work with apply: 'kotlin-platform-native', plugin arguments can't reach compiler and therefore build is broken. This is a regression because 0.9.2 was applying them correctly.

Reference issue with attached project sample to reproduce: Kotlin/kotlinx.serialization#231

@Syrou
Copy link

Syrou commented Oct 12, 2018

Just a quick headsup @sandwwraith I think the same problem applies to "kotlin-multiplatform"

@ilmat192
Copy link
Contributor

ilmat192 commented Oct 15, 2018

Currently the Kotlin/Native plugin jar includes a shaded version of kotlinx-serialization which should be applied in the following way:

apply plugin: 'kotlinx-serialization-native'

See example here.

We are going to get rid of this limitation and allow applying custom compiler plugins: https://youtrack.jetbrains.com/issue/KT-27581

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants