https://kotlinlang.org logo
#announcements
Title
# announcements
m

mathew murphy

06/19/2019, 9:53 PM
So if I'm not using Gradle I need to add the library explicitly?
l

louiscad

06/19/2019, 9:58 PM
You can't not use Gradle if you want to use kotlinx.serialization.
m

mathew murphy

06/19/2019, 9:58 PM
Ugh.
l

louiscad

06/19/2019, 10:00 PM
That's how it works. A Gradle plugin generates the serialization code so you don't have to hand write it. It seems like things are unclear to you.
m

mathew murphy

06/19/2019, 10:02 PM
I wasn't aware it was using a Gradle plugin to generate the serialization code.
l

louiscad

06/19/2019, 10:03 PM
m

mathew murphy

06/19/2019, 10:03 PM
The readme says there's an example Maven project too.
Ah, I see the notes right at the bottom of the readme now
So that seems to suggest that if I import a project with serialization enabled from a Gradle project, I no longer need Gradle afterwards.
"Starting from 1.3.11, no delegation is required." -- i.e. IDEA should handle the build
s

sandwwraith

06/20/2019, 9:51 AM
IDEA handling the build, but to add compiler plugin and runtime library to build classpath, you'd better use Gradle
IDEA alone does not provide any ways to configure compiler plugins now
2 Views