https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
server
  • g

    Gunslingor

    08/17/2019, 11:46 PM
    I'm confused about SpringApplication.run, I think I need to use a coorutine. ATM I have this SpringApplication.run statement in my main and 3 lines of other things I need to do every 5 minutes; how would I accomplish that?
    r
    s
    • 3
    • 6
  • j

    jdemeulenaere

    08/19/2019, 5:08 PM
    In case anyone is interested, I just uploaded a sample of a kotlin project that uses Kotlin, bazel and gRPC with a small client and server: https://github.com/jdemeulenaere/kotlin-bazel-grpc. The documentation of gRPC and bazel are not really uptodate so I thought it might interest people who want to play with those tools 🙂. Note that I don't use any best practices (e.g. don't use blocking client) or fancy feature (e.g. coroutines) that we normally should, it's really just the simplest example I could do
    👏 5
    👍 4
    j
    • 2
    • 2
  • s

    Sabeeh

    08/20/2019, 5:04 AM
    any ktor admin panel template?
    n
    • 2
    • 1
  • l

    leodamsky

    08/20/2019, 12:24 PM
    Hey guys! Does anyone know how to make Kotlin compiler understand that a method return type is nullable? There is a class
    org.springframework.transaction.support.AbstractPlatformTransactionManager
    which method
    doGetTransaction
    is actually nullable, but Kotlin compiler doesn't understand that. In the first picture - a method itself and in the second one - method which is used after
    doGetTransaction
    with nullable param. I'm 100% sure
    doGetTransaction
    return type should be treated as nullable.
    m
    b
    s
    • 4
    • 9
  • a

    Arian Stolwijk

    08/22/2019, 12:23 PM
    I'm relatively new to kotlin and we want to introduce it to our (big) Java/Spring application. I was wondering if
    kotlin-jpa
    is the way to go when working with hibernate? It makes it easier to define
    @Entity
    classes as data-classes, but is that the best way 🤔
    i
    s
    • 3
    • 3
  • j

    Juanoterocas

    08/23/2019, 2:48 AM
    Hi, any one has faced this problem?
    s
    e
    • 3
    • 6
  • d

    Don Phillips

    08/23/2019, 5:15 PM
    Oh, and CGLIB is what Spring is using to proxy the controller class, if that matters
    s
    • 2
    • 1
  • s

    sdeleuze

    08/26/2019, 9:52 AM
    I am in the process of converting Java samples to Kotlin in Spring reference documentation
    l
    • 2
    • 2
  • v

    Vincent Bonnet

    08/28/2019, 1:04 PM
    Hi all. i am trying to generate kotlin from a Yaml file (with swagger codegen). And i have a lot of dependency problem, does anyone has already try it ?
    m
    a
    d
    • 4
    • 7
  • s

    Sam

    09/03/2019, 4:32 AM
    Hello everyone, I have some dump question about Web Application, I’m newbie in Web industry . I have used
    Ktor
    for building my own API . But I’m so curious about Web Architecture between Java and Ktor. So what different Web Application between building base on `java`(Spring Java EE) and
    Kotlin
    (Ktor) ??? What is the relationship of Java and Kotlin when developing web? What different ? what the same things? Thanks
    g
    n
    • 3
    • 32
  • s

    Sam

    09/03/2019, 5:36 PM
    Hello everyone, I have a question about
    Certificates- JKS file format - CER file format
    I’m using Heroku for deploying my app , its running on HTTPs look like
    <https://myapp.herokuapp.com/>
    So Do I need to generate a Certificates, JSK, CER for security ?? Ref: https://ktor.io/servers/certificates.html#cer-file-format
    d
    • 2
    • 5
  • a

    Amardeep

    09/10/2019, 7:48 AM
    Hello Everyone, I need some inputs regarding ktor swagger integration. I am prepping up to replace spring boot with ktor and want to showcase ktor to my team. So far the only missing feature I have found is Swagger support. This might prevent us to adopt ktor in near future. I haven’t so far found any definite answer or road map on the internet as well. Any thoughts!
    t
    l
    • 3
    • 9
  • s

    Sam

    09/10/2019, 2:47 PM
    Hello everyone, I curious about chat system, I want to build chat system on Ktor framework. so Do you think Socket.IO can have powerful to build medium/large chat system.? Or Can you suggestion some technical to build medium/large chat system ? Thanks
    g
    v
    s
    • 4
    • 14
  • d

    dave

    09/12/2019, 1:09 PM
    We've added a tutorial about the http4k OpenApi3 support to the website. Feedback (or upvotes 🙂 ) very welcome: https://www.reddit.com/r/Kotlin/comments/d36z03/tutorial_documenting_http4k_apis_with_openapi3/
    d
    • 2
    • 4
  • j

    Jacob Richards

    09/15/2019, 5:42 PM
    Hey folks! Building a server with Ktor connected to a Postgres DB, and I am also planning to integrate Dagger for DI later on- does anyone know of any good resources/tutorials for Dagger + Kotlin (or, more specifically, Dagger with Ktor)? ALSO, I’m looking to learn Dropwizard with Kotlin- anyone know of any good resources for that as well?
    t
    g
    • 3
    • 5
  • c

    Cris B

    09/17/2019, 7:14 AM
    Hello everyone, I am trying to get a #ktor api server jar build, and i tried both documented options with shadowJar and simple gradle jar build, and in both cases when i try running the jar via java -jar jarname.jar i get the following error: Error: Could not find or load main class io.ktor.server.netty.EngineMain. Could somebody please point me in the right direction how I can get the jar built and working ? In IntelliJ the server runs ok.
    v
    e
    • 3
    • 4
  • s

    Stian N

    09/17/2019, 1:30 PM
    Does anyone have an overview of Kotlin specific improvements in the upcoming Spring 5.2 release?
    e
    i
    s
    • 4
    • 6
  • t

    Thiago Santana

    09/18/2019, 10:09 PM
    Hi everyone! Sorry to come in with the cliché-ish question. But I am planning a talk in my company to try and lure some stakeholders to give it a try with kotlin but I am strugling to find success cases for mid to large scale companies that have made the shift for server side applications. Our stack is composed of microservices using Spring Boot + Kafka. If anyone has handy resources with stories of known or tech companies that have made the shift in that area and can share, that would be lovely. unfortunatelly, the most exciting stories I find are related to mobile apps which would not be that interesting for my group. Thank you!
    d
    t
    +4
    • 7
    • 7
  • j

    jdelaney

    09/23/2019, 2:59 PM
    👋 With
    kotlinx.html
    , is there a way to apply a class to all children of a tag? e.g. if I have
    fun BODY.card(block: DIV.() -> Unit = {}) {
        div("card") {
            // I want to apply the "section" class to 
            // the top-level tags here
            block()
        }
    }
    https://github.com/kotlin/kotlinx.html/wiki/Interceptors mentions the ability to transform some HTML but doesn't actually say how. (I know this isn't best practice for CSS but I'm trying to make some generic functions for a CSS framework I'm using)
    s
    • 2
    • 4
  • c

    coder82

    09/26/2019, 8:38 AM
    I have a single threaded context, is there a way to query if some coroutine is running in that context at any given time?
    a
    v
    • 3
    • 4
  • m

    Marc Knaup

    09/30/2019, 2:25 PM
    Where do you guys host you Kotlin-based servers? Ideally where you can also have a MongoDB running. Currently I use Heroku + MongoDB Atlas but performance wise it doesn't seem like a good fit 🤔
    t
    v
    d
    • 4
    • 7
  • c

    Cristian

    10/01/2019, 4:53 PM
    Hi, I'm starting a Kotlin Backend + Spring Boot and don't know what DI framework use, which do you recommend?
    m
    m
    +2
    • 5
    • 8
  • m

    Marc Knaup

    10/04/2019, 4:55 AM
    Hey guys. Has anybody found a good approach for backward & forward API compatibility based on capabilities rather than API versioning? Maybe even with Ktor & Kotlin Serialization. With capabilities-based I mean roughly like this:

    https://www.youtube.com/watch?v=M2KCu0Oq3JE▾

    s
    • 2
    • 1
  • m

    Manoj

    10/06/2019, 12:29 PM
    Spring is exciting and terrifying at same time
    😂 4
    j
    • 2
    • 1
  • b

    Bolu Okunaiya

    10/07/2019, 5:29 AM
    Can someone please help me out https://stackoverflow.com/questions/58263749/java-lang-noclassdeffounderror-com-google-api-core-apifuture
    s
    • 2
    • 3
  • j

    Jabez Magomere

    10/07/2019, 10:34 AM
    Hey guys, is the process of hosting a spring application built with Kotlin same as java?
    a
    s
    • 3
    • 4
  • m

    Mouhamadou Gueye

    10/08/2019, 9:21 PM
    Hi, could you purpose me a book for Kotlin server side. Thanks.
    l
    t
    +2
    • 5
    • 7
  • m

    Mani

    10/11/2019, 8:22 PM
    Why is that nobody ever talks about dropwizard and kotlin together, am I missing something?
    s
    f
    +2
    • 5
    • 47
  • t

    TanVD

    10/14/2019, 1:35 PM
    Hi all! For those who work not only with servers, but also serverless 🙂 (still web though) Kotless version 0.1.1 was released (https://github.com/JetBrains/kotless) Kotless stands for Kotlin serverless framework, it aims to reduce the routine of serverless deployment creation and generates it straight from the code of the application itself. Right now it supports deployment to AWS of API Gateway, scheduled jobs, granular permissions granting, static resources and providers familiar for all server-developers JAX RS-like interface. Take a look and join the discussion in #kotless
    👏🏻 5
    n
    k
    • 3
    • 6
  • j

    jojo.lichtenberger

    10/14/2019, 4:30 PM
    Hey, maybe someone is eager to help to build a versioned data store (currently for XML and JSON in a binary format, whereas the storage engine has been written from scratch). SirixDB shares unchanged database pages between snapshots and even versions data pages... https://sirix.io the core has been written in Java but the REST-API is built with Vert.x and Kotlin (Coroutines) and I'd love to add Kotlin to other modules as it's so much more fun to write and read Kotlin code. I'd also love to provide a Kotlin DSL...
    x
    • 2
    • 3
Powered by Linen
Title
j

jojo.lichtenberger

10/14/2019, 4:30 PM
Hey, maybe someone is eager to help to build a versioned data store (currently for XML and JSON in a binary format, whereas the storage engine has been written from scratch). SirixDB shares unchanged database pages between snapshots and even versions data pages... https://sirix.io the core has been written in Java but the REST-API is built with Vert.x and Kotlin (Coroutines) and I'd love to add Kotlin to other modules as it's so much more fun to write and read Kotlin code. I'd also love to provide a Kotlin DSL...
x

Xavier F. Gouchet

10/15/2019, 7:57 AM
Since it's Hacktoberfest, I was actually looking for projects I could contribute to. Though I'm not an expert in DB code, I'll try and submit a couple of PRs 🙂
j

jojo.lichtenberger

10/15/2019, 10:14 AM
That's super awesome... having worked for years (with long breaks admittedly) on the project, since I finished university and now during #Hacktoberfest getting the first contributions 🙂 I'm still not sure if it would be okay to add a Kotlin dependency to the core. However, we could simplify the APIs and probably even add a great DSL 🙂 That said the REST-API is written in Kotlin (sirix-rest-api module) and I really love Kotlin, even if I'm pretty new to Kotlin.
and it's not really satisfying to have to use Java if I could also use Kotlin 🙂
View count: 6