https://kotlinlang.org logo
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
benchmarks
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
confetti
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
lincheck
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
Title
v

Vampire

04/02/2023, 3:02 PM
Why is
kotlin-wrappers
already depending on 1.8.20? It is not yet officially released. 😕
a

Ayfri

04/02/2023, 3:31 PM
You can already install 1.8.20, the EAP docs are already listing a lot of the changes from this update
v

Vampire

04/02/2023, 3:32 PM
You can use it, yes, it is available on Maven Central. But you shouldn't. As with every release, it needs a few days until everything is in place and until the Blog post appears, it is not officially released and should not be used.
t

turansky

04/02/2023, 6:29 PM
You can use it, yes, it is available on Maven Central.
But you shouldn’t.
Why it doesn’t work the same way for
kotlin-wrappers
? 🙂
v

Vampire

04/02/2023, 8:11 PM
Because you do not have such a rule, that releases are only to be used when officially announced.
Besides that this procedure is disturbing and unnerving, especially with people using automatic dependency update bots and then wonder why things do not work properly if they use half-released versions.
t

turansky

04/02/2023, 8:39 PM
How bots understand, that new version of Kotlin can be used? Is there special flag “officially announced”?
v

Vampire

04/02/2023, 8:41 PM
Unfortunately not, that's exactly the problem. As far as I know people using such bots and being aware of this aweful situation configure it either to ignore Kotlin or to delay suggesting a Kotlin update for 1 or 2 weeks in which time it usually is officially ready.
t

turansky

04/02/2023, 9:48 PM
From our side it’s also important to know, that we are compatible with new Kotlin version 🤨
v

Vampire

04/02/2023, 9:50 PM
Of course, but depending on a not fully released version is like depending on an rc or snapshot or similar. It is bad to do so, especially in a library. I intended to switch to latest version and suddenly got my Kotlin version upgraded to a not-fully release version.
Besides that you usually should depend on the lowest version of dependencies you support, not on the latest. Like it is now,
kotlin-wrappers
latest version says "I need 1.8.20 and nothing less".
t

turansky

04/02/2023, 9:55 PM
Are you from “Java world”? 🙂
v

Vampire

04/02/2023, 9:56 PM
Yes, but that shouldn't make any difference
Especially as that is Gradle logic and Maven logic and Ivy logic and Npm logic, ..., not Java logic
t

turansky

04/02/2023, 10:08 PM
Like it is now,
kotlin-wrappers
latest version says “I need 1.8.20 and nothing less”.
It’s what we really check on our projects
I mean - usually we check wrappers on latest version only
v

Vampire

04/02/2023, 10:10 PM
Yeah, well, if that is what you want to say, it's fine, except for the fact that it is a not-fully released version. I tend to be more open to older versions in my library projects to be a bit more compatible. Not everyone can always immediately use latest versions of things, especially in bigger projects. 🙂
t

turansky

04/02/2023, 10:11 PM
Not everyone can always immediately use latest versions of things, especially in bigger projects. 🙂
I suppose they don’t update wrappers every day 🙂
I tend to be more open to older versions in my library projects to be a bit more compatible.
Special notes in CHANGELOG?
v

Vampire

04/02/2023, 10:18 PM
Don't know what you mean. Besides that it is not "Kotlin 1.8.20 support", but "Requires now Kotlin 1.8.20", I have no idea why you answer with that link to the quoted statement. Yes, you notify your users about the 1.8.20 move. That was not the point.
Well, let's just stop it here. You want to only support the latest Kotlin version always and that is fine, it is your project. And you want to require a not yet fully released version, that's not so fine, but welll, it is your project and I just don't upgrade further until it is officially released, like with other libs that have the funny idea to depend on unfinished work. 🙂
t

turansky

04/02/2023, 10:46 PM
@Vampire Your comments are important. But I can’t use it directly. It doesn’t work the same way as for Java libraries unfortunately. I have related problems with versions. Android needs Kotlin
1.8.10
, Kotlin/JS needs Kotlin
1.8.20
- what would be fine solution?
v

Vampire

04/02/2023, 10:47 PM
Well, don't use a not-fully released version. 😄
But other than that, just normal conflict resolution. If 1.8.10 is supported, 1.8.20 should too, so default conflict resolution in Gradle would pick 1.8.20
t

turansky

04/02/2023, 10:49 PM
Compose won’t support Kotlin
1.8.20
next/this week :(
Official announcement will change nothing
v

Vampire

04/02/2023, 10:50 PM
They only support an exact specific version? o_O
Well, that's even worse than
kotlin-wrappers
then. 😄
t

turansky

04/02/2023, 10:51 PM
We have releases for all stable Kotlin versions 🙂
And even for “not-fully” released
For my project Kotlin
1.8.20
works fine right now With required fixes for IR compiler
They only support an exact specific version? o_O
1.8.0
supported officially
v

Vampire

04/02/2023, 10:55 PM
Compose won’t support Kotlin
1.8.20
next/this week :(
Did you mean "will not support" as in "will not officially announce that they support it" or as in "it fails if you try to use 1.8.20"?
Because any sane project I know means with "supports version x.y.z" x.y.z and any newer version, or at least within the same major or minor version. 😄
t

turansky

04/02/2023, 10:57 PM
“it fails if you try to use 1.8.20”?
Yes
v

Vampire

04/02/2023, 10:59 PM
😢
But well, there you have why it is bad if some libraries force you to always the latest version. 😄
t

turansky

04/02/2023, 11:02 PM
Compose forces you to use previous version 🙂
v

Vampire

04/02/2023, 11:02 PM
Present version, you said it works with 1.8.10 😛
t

turansky

04/02/2023, 11:03 PM
Only with suppress
v

Vampire

04/02/2023, 11:03 PM
But yeah, didn't say that is nice either. But the more libraries force single specific versions, the worse it is to combine them in a project
Good old joy of dependency hell 😄
l

Landry Norris

04/03/2023, 1:48 AM
They said when Compose was first released that the Kotlin plugin SDK isn't quite stable yet in terms of breaking changes. I believe the goal was to change this in Kotlin 2.0, but not 100% sure if that's on track. Because of this, Compose needs to be modified for each Kotlin version.
e

ephemient

04/03/2023, 4:20 AM
Compose has multiple parts. The Compose compiler plugin is fairly strictly tied to exact compiler releases. The rest of the runtime is not (neither to the Kotlin version nor the compiler plugin version).