Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ gson = "2.14.0"
hiltAndroid = "2.59.2"
hiltNavigationCompose = "1.3.0"
ktor = "3.5.0"
kotlin = "2.3.21"
coreKtx = "1.18.0"
kotlin = "2.4.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify Kotlin 2.4.0 exists and check KSP compatibility

# Check if Kotlin 2.4.0 is published on Maven Central
echo "=== Checking Kotlin 2.4.0 availability ==="
curl -s "https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/2.4.0/" | grep -q "kotlin-gradle-plugin-2.4.0.pom" && echo "✓ Kotlin 2.4.0 exists" || echo "✗ Kotlin 2.4.0 not found"

# Check KSP 2.3.9 compatibility with Kotlin 2.4.0
echo -e "\n=== Checking KSP 2.3.9 availability ==="
curl -s "https://repo1.maven.org/maven2/com/google/devtools/ksp/com.google.devtools.ksp.gradle.plugin/2.3.9/" | grep -q "com.google.devtools.ksp.gradle.plugin-2.3.9.pom" && echo "✓ KSP 2.3.9 exists" || echo "✗ KSP 2.3.9 not found"

Repository: lostf1sh/PixelPlayerOSS

Length of output: 192


🌐 Web query:

Kotlin 2.4.0 release notes and breaking changes

💡 Result:

Kotlin 2.4.0 was released on June 3, 2026 [1][2][3]. The release focuses on stabilizing key language features and improving performance, while introducing several breaking changes related to compiler support and build tool integration [1][4]. Key Breaking Changes and Deprecations 1. Removal of K1 Compiler and Language Version 1.9 Support: Starting with Kotlin 2.4.0, the compiler no longer supports the -language-version=1.9 flag [1]. Consequently, the legacy K1 compiler is no longer supported; projects must migrate to the K2 compiler [1][4]. Users on Kotlin 1.9 are advised to migrate through the 2.x intermediate releases before upgrading to 2.4.0 [4]. 2. Build Tool and Plugin Changes: - Kotlin Script execution via the KotlinScriptMojo Maven plugin is no longer supported [1]. - Several parts of the DSL for binary compatibility validation in the Kotlin Gradle plugin have been deprecated in favor of streamlined alternatives [1]. 3. Other Potential Incompatibilities: - Standard library contracts: Changes in the 2.4 standard library contracts may cause incompatibilities when used with 2.3 or older compilers [5][6]. - API Removals: The 2.4.0 release includes the removal of various APIs that were previously marked as deprecated [5]. Major New Features and Highlights - Stable Features: Context parameters, explicit backing fields, and annotation use-site targets have been promoted to Stable, removing the need for experimental opt-in flags [7][4]. - Kotlin/Wasm Improvements: Incremental compilation for Kotlin/Wasm is now enabled by default, significantly improving build times [7][4]. The release also introduces support for the WebAssembly Component Model [7]. - Multiplatform/KMP: Added support for Swift package imports and improved interoperability through Swift export [7][4]. - Security Support Policy: Kotlin 2.4.0 introduces an 18-month security support window for the JVM kotlin-stdlib runtime, with security fixes backported to active release lines [4]. For a complete overview of all changes, JetBrains recommends reviewing the official Compatibility Guide linked in the Kotlin 2.4.0 release documentation [1].

Citations:


🌐 Web query:

KSP 2.3.9 compatibility with Kotlin 2.4.0

💡 Result:

As of June 8, 2026, there is no official release of KSP (Kotlin Symbol Processing) that explicitly declares compatibility with Kotlin 2.4.0 [1]. Kotlin 2.4.0 was released on June 3, 2026 [2], and KSP 2.3.9 was released on May 26, 2026 [3][4]. Development efforts to add support for Kotlin 2.4.0 are currently tracked in the KSP repository [1]. Because KSP2 is designed as a more decoupled tool compared to its predecessor [5], it is generally less strictly bound to specific minor Kotlin versions; however, users should await an official KSP release that targets Kotlin 2.4.0 to ensure full support and stability [1]. Please note that KSP (Kotlin Symbol Processing) refers to the compiler plugin API for Kotlin, which is distinct from the similarly abbreviated game "Kerbal Space Program" [6][7]. Ensure that your development environment settings are not confused with game versioning [8].

Citations:


Check Kotlin 2.4.0 + KSP 2.3.9 compatibility before merging

  • Kotlin 2.4.0 and KSP 2.3.9 artifacts are available, but there’s no official KSP release explicitly declaring compatibility with Kotlin 2.4.0—this can break compilation.
  • Kotlin 2.4.0 also includes breaking changes around -language-version=1.9 / K1 compiler support—verify the project isn’t setting that in kotlinOptions/freeCompilerArgs, and adjust to K2-compatible settings.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@gradle/libs.versions.toml` at line 23, The project pins Kotlin to "2.4.0" in
libs.versions.toml but KSP 2.3.9 may not be officially compatible and Kotlin 2.4
introduces K2/K1 and -language-version=1.9 changes; verify and fix by either
downgrading the libs.versions.toml kotlin entry to a KSP-compatible Kotlin
version or upgrading KSP to a version that explicitly supports Kotlin 2.4.0, and
also inspect build.gradle(.kts) kotlinOptions and any freeCompilerArgs for
"-language-version=1.9" or K1-specific flags and remove/adjust them to
K2-compatible settings (or set kotlinOptions { languageVersion = "1.9" } /
compilerOptions consistently) so the compiler and KSP versions match.

coreKtx = "1.19.0"
junit = "4.13.2"
junitVersion = "1.3.0"
junitJupiter = "6.1.0"
Expand Down Expand Up @@ -49,7 +49,7 @@ roomCompiler = "2.8.4"
roomKtx = "2.8.4"
roomRuntime = "2.8.4"
accompanist = "0.37.3"
checkerframework = "4.1.0" # O la versión más reciente que encuentres
checkerframework = "4.2.0" # O la versión más reciente que encuentres
taglib = "1.0.6"
jaudiotagger = "3.0.1"
vorbisjava = "0.8"
Expand All @@ -59,7 +59,7 @@ junit5 = "6.1.0"
kuromoji = "0.9.0"
pinyin4j = "2.5.1"
securityCrypto = "1.1.0"
netty = "4.2.13.Final"
netty = "4.2.15.Final"
bouncycastle = "1.84"
commons-lang3 = "3.20.0"
jdom2 = "2.0.6.1"
Expand All @@ -72,7 +72,7 @@ dagger = "2.59.2"
javax-inject = "1"

# Annotations procesing
ksp = "2.3.8"
ksp = "2.3.9"
smoothCornerRectAndroidCompose = "v1.0.0"
tensorflowLite = "2.17.0"
tensorflowLiteSelectTfOps = "2.16.1"
Expand All @@ -82,7 +82,7 @@ wavySlider = "2.2.0"
workRuntimeKtx = "2.11.2"
composeTesting = "1.0.0-alpha03"
timber = "5.0.1"
mockk = "1.14.9"
mockk = "1.14.11"
turbine = "1.2.1"
truth = "1.4.5"

Expand Down
Loading