Giorgi
07/16/2025, 6:26 PMsettings:
kotlin:
languageVersion: 2.2
now when I try to consume it from a Gradle project, the build failsGiorgi
07/16/2025, 6:26 PMe: file:///Users/Giorgi_Shalvashvili/Downloads/aaaaaaaaa/data/src/commonMain/kotlin/OverwatchPlayerSearchDataSource.kt:9:32 Class 'io.github.shalva97.overwatch_player_search_api.PlayerSearch' was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler.
Giorgi
07/16/2025, 6:27 PMGiorgi
07/16/2025, 6:27 PMkotlin = "2.2.20-Beta1"
joffrey
07/16/2025, 6:48 PMlanguageVersion
set in the settings is a compiler option but doesn't change the actual Kotlin tool chain. When using a higher version than the compiler, it makes the compiler accept new experimental language constructs of future versions. This is probably why you're seeing this.joffrey
07/16/2025, 6:49 PM