https://kotlinlang.org logo
#ktor
Title
# ktor
b

Bruno Medeiros

12/15/2021, 1:57 AM
playing with ktor 2 eap, I’m confused with 2 things: • Why is the latest version for
ktor-server-core-macosx64
2.0.0-eap-272
instead of
2.0.0-eap-283
? Are we having any problems with the building mechanism, or is this discontinued? • How can I install
ktor-server-content-negotiation
? I can’t see this published for any platform, but without it I don’t know how to install the json serializer
a

Aleksei Tirman [JB]

12/15/2021, 7:19 AM
Why is the latest version for 
ktor-server-core-macosx64
 
2.0.0-eap-272
 instead of 
2.0.0-eap-283
? Are we having any problems with the building mechanism, or is this discontinued?
@e5l
How can I install 
ktor-server-content-negotiation
? I can’t see this published for any platform, but without it I don’t know how to install the json serializer
It's available for the JVM. You can use
io.ktor:ktor-server-content-negotiation:$ktorVersion
and
io.ktor:ktor-serialization-kotlinx-json:$ktorVersion
artifacts. Please read the docs for more information.
👀 1
b

Bruno Medeiros

12/15/2021, 7:22 AM
I know it's available for JVM, but I'm trying to set up a purely native server.
(sorry, I meant any "any native platform")
a

Aleksei Tirman [JB]

12/15/2021, 10:30 AM
Unfortunately, the ContentNegotiation plugin isn't implemented for native platforms yet.
b

Bruno Medeiros

12/15/2021, 10:31 AM
are PRs being accepted for that?
e

e5l

12/15/2021, 10:49 AM
Yep, we will merge the PR before 2.0.0-beta release in this year
b

Bruno Medeiros

12/15/2021, 10:49 AM
I'll give it a try this weekend, I'll let you know
r

Rustam Siniukov

12/15/2021, 2:01 PM
There is a PR that migrates all plugins, that can be migrated. https://github.com/ktorio/ktor/pull/2725
6 Views