Kotlin Toolchain 0.14.1 — security update If you use the Kotlin Toolchain, update your CLI and refresh the JDKs it downloaded for your builds. Both can be affected by CVE-2026-114938, a vulnerability in the Java compiler component. 1. Update the CLI runtime. From the project root, run ./kotlin update --target-version 0.14.1 to update the project’s wrapper. The CLI will then run on the patched Azul Zulu JRE, version 25.38.201 (JDK 25.0.5.1+2). 2. Refresh the JDK used by your build. The toolchain caches the project’s JDK indefinitely by default. Run ./kotlin clean in the project so the next build picks up the latest patch. 3. Refresh JDKs across projects. Run ./kotlin clean-shared-caches to clear the shared cache. This also clears cached dependencies, so builds will download them again. To keep those dependencies, run ./kotlin --help, find the path beside --shared-cache-dir, and remove only the JDK entries from both download.cache and extract.cache. https://github.com/JetBrains/kotlin-toolchain/releases/tag/v0.14.1
Открыть в TelegramПосты канала The Daily Kotlin
Kotlin Toolchain 0.14.0 Kotlin Toolchain 0.14.0 brings a TestFlight publishing preview, Android API desugaring and stricter checks for empty test runs. Major changes: 1. Publish iOS builds to TestFlight from the CLI. kotlin publish testflight guides you through first-time setup, automatic signing and uploading a release build. This is a preview: you need macOS, Xcode, an Apple Developer membership and an App Store Connect team API key. App Store submission remains a separate step. — KTC-6034, Tagged publishing guide 2. Android app identity becomes explicit — breaking change. Android apps now require settings.android.applicationId; namespace defaults to it. This prevents a package rename from silently changing the app’s identity in Google Play. If you previously set only namespace, add applicationId with the app’s existing ID before upgrading. — KTC-5980, Android settings 3. Use newer Java APIs on older Android devices. Enable settings.android.desugaring: enabled to use supported Java 8+ APIs such as java.time on older Android versions. Libraries can also declare that their consumers need desugaring. It is opt-in, with desugar_jdk_libs 2.1.5 as the default implementation. — KTC-5965, Tagged Android guide 4. Catch test runs that discover nothing. kotlin test now fails when no tests are discovered across the run, helping catch broken discovery or filters. Skipped tests still count as discovered. In multi-module projects, test filters also require an explicit module selection with --include-module or --exclude-module. — KTC-5747, Test command, Discovery tracker 5. Point tool downloads at your own mirrors. Environment variables can now redirect built-in repository and tool download URLs, useful on restricted networks. Mirrors must preserve the original path layout. The override names are documented as subject to change. — KTC-5375, Download overrides 6. Moving a published library from Gradle is safer. KLIB identities now follow the group:artifactId convention when a publishing group is configured. This fixes a migration failure where previously compiled Native consumers could no longer find the library’s symbols after a switch to Kotlin Toolchain. — KTC-6014, Tagged compiler arguments 7. Help developers discover your KMP library sooner. Opt into settings.publishing.mavenCentral.notifyKlibsIo: true to notify klibs.io after uploading a publication, without waiting for its regular Maven Central scan. With manual Central publishing, release the artifacts within four days for the notification to remain valid. — KTC-5819, Publishing guide 8. Update the globally installed CLI directly. Outside a project, kotlin update updates the running wrapper. Inside a project it updates the project wrappers; use kotlin update --self to update the running global wrapper instead. — KTC-6023, Update command 9. Dependency and tool defaults. The main defaults remain Kotlin 2.4.20, Compose 1.12.1, Ktor 3.6.0, KSP 2.3.12, Spring Boot 4.1.1 and JDK 25. The new Android desugaring support defaults to desugar_jdk_libs 2.1.5. — 0.14.0 defaults 10. Serialization formats become ordinary dependencies. settings.kotlin.serialization.format and the serialization: json shortcut are deprecated. Use serialization: enabled and add $kotlin.serialization.json under dependencies, where formats can be combined, exported or assigned dependency scopes. — KTC-6008, Serialization guide Update from your project directory: ./kotlin update. Check the Android application ID change above before migrating.
Открыть в Telegramkotlinx.serialization 1.13.0 This release rolls back the exception wrapping introduced in 1.12.0 and makes converting JSON trees back to text faster. Major changes: 1. Custom exceptions reach your error handlers again. In 1.12.0, JSON started wrapping exceptions from serializers and constructor validation in JsonException. That could break code catching the original exception type. 1.13.0 removes this broad wrapping: for example, a failed require in a deserialized class constructor once again throws IllegalArgumentException directly. If you adapted your error handling to 1.12.0, check it when upgrading. — Rollback 2. Faster JSON tree-to-text conversion. If you parse JSON into a JsonElement and later turn it back into text, toString() now avoids creating and concatenating strings for every nested element. The rewrite uses a shared StringBuilder and is roughly twice as fast on some benchmarks. This improves tree-to-text conversion; the figure is not a general JSON encoding or decoding speedup. — #3299, #3296 GitHub release
Открыть в TelegramKotlin 2.5.0-RC Kotlin 2.5.0-RC is out. This one mostly fixes problems found in the betas, with two features taking a step back before the final release. What changed: 1. Native incremental code generation is opt-in again. RC disables incremental code generation by default after serious bugs and poor clean-build performance showed it needed more work. You can still enable it explicitly. — KT-91432, Tagged change 2. Lombok’s @Builder support in Kotlin is postponed. Support for @Builder on Kotlin declarations has been pulled from 2.5.0 after several compiler crashes. If you tried it in the betas, you’ll need to remove that usage for now. Builders declared in Java are unaffected by this rollback. — KT-90666 3. Fixes for libraries built with older Kotlin versions. On Native, older KLIBs could make value-class == allocate unnecessary objects. Another compatibility bug affected older libraries that converted a regular function to a suspend function: a non-local return could be lost on JS/Wasm, while the same code could fail to compile on Native. Both are fixed. — KT-90675, KT-91139 4. Fewer surprises for TypeScript users. When targeting ES2020 or later, Kotlin’s Long values could become bigint in JavaScript but any in generated TypeScript declarations, letting invalid calls pass type checking. RC makes the declarations match and fixes incorrect ES module declarations. The generator also picks up -XXLanguage settings and the option to use unknown instead of any. — KT-90489, KT-90491, KT-90519, KT-90366 5. Playwright runs the code you just changed. Previously, you could change Kotlin code, rerun browser tests, and still get a green result from the old bundle. The build now tracks all compiled JS files so the test bundle is rebuilt when needed. — KT-89797 6. Missing targets in publication configuration. Beta2’s Kotlin Archive changes could leave JS, Wasm and Native publications out of your publishing setup. This is fixed when you use Gradle’s lazy configuration APIs. Code that eagerly iterates over publications can still miss them. — KT-90544 7. Two fixes for Apple linker errors. A Swift package exported with swiftPackageIntegration() could work in Debug but fail to link in Release. That’s fixed. So is a separate problem with cached Debug static frameworks containing Kotlin subclasses of Objective-C classes, which previously needed -dead_strip to link. — KT-90738, KT-90589 8. Less allocation when using KClass on Wasm. KClass.hashCode() now uses the runtime type ID instead of the qualified class name, avoiding repeated string allocation and hashing. This saves work when classes are used as map keys — something Compose UI does internally. — KT-91066 9. A newer Node.js, with a shared version setting. The Gradle plugin’s default moves from Node.js 24.16.0 to 24.22.1, including the October security fixes. A new kotlin.defaultNodeJsVersion property lets you choose the default version for both JS and Wasm/JS in gradle.properties. — Node.js update
Открыть в TelegramDokka 2.3.0 Release notes Major changes: 1. Documentation for companion blocks and extensions. APIs using KEEP-0449 can now be documented by Dokka. Class pages gain Companion functions and Companion properties sections, grouping these members separately from instance members; companion extensions also show the companion modifier in their Kotlin signatures. — #4514, #4529 2. Hide APIs by annotation. If your library marks declarations with an internal API annotation, you can now keep them out of generated docs through suppressAnnotatedWith. Configure the annotation’s fully qualified name for the source set, such as com.example.InternalApi, and Dokka excludes matching declarations. — #4464 3. Dokka joins builds using Project Isolation. The Dokka Gradle plugin v2 now supports Gradle’s Project Isolation, removing a compatibility obstacle for multi-project builds adopting it. — #4497 4. Modern Java comments in your API docs. For libraries with Java sources, Dokka now understands Markdown documentation comments (///, JEP 467) and the Javadoc @snippet tag (JEP 413). You can use Markdown for prose and structured code examples in Java comments and have Dokka render them in the generated documentation. — #4414, #4392 5. Bundled dependency security updates. This release updates libraries shipped with Dokka to address reported vulnerabilities: FreeMarker 2.3.35, jsoup 1.23.2, and Jackson 2.22.2. — #4613, #4579, #4581 Migration note: K1 analysis has been removed. The org.jetbrains.dokka.experimental.tryK2 and .noWarn flags no longer have any effect and can be removed from gradle.properties. #4532 Try the release and share feedback with the Dokka team.
Открыть в Telegramkotaml 0.113.0 YAML for kotlinx.serialization. The last three releases (0.111.0–0.113.0) have focused heavily on correctness: following YAML 1.2 rules and preserving data when reading and writing. This release continues that work and adds a new documentation website. More reliable YAML handling. Fixes preserve string content, sequence tags and multiline comment formatting. Invalid property-name collisions now produce clear errors, and parser diagnostics are easier to act on. — Release notes Upgrade note: reading now defaults to a maximum nesting depth of 50. For deeper trusted documents, raise maxNestingDepth in YamlConfiguration. — Configuration New website: installation examples, a YAML behavior reference and architecture diagrams. Documentation · Full changelog
Открыть в TelegramKotlin Interactive Shell 0.6.0 Want to check a Kotlin expression, inspect a type, or try a library without setting up a project? ki gives you an interactive Kotlin shell in the terminal, with Maven dependencies you can add during a session. — README ki has its first release in over four years. Version 0.6.0 moves the shell to K2, bringing it forward from the Kotlin 1.7 foundation of 0.5.2. The old engine had already run into compatibility problems with Kotlin 2.0. — 0.5.2 release, K2 migration, Compatibility issue Completion has been rebuilt for K2: press Tab to explore members, extension functions, imports, and declarations from earlier snippets, including res* results. Function suggestions show their signatures, helping you find the call you need while experimenting. — Completion implementation The existing :type command has also been ported to K2. It inspects an expression without executing it: :type listOf(1, 2, 3).map { it.toString() } returns List<String>, while :type println("hello") reports Unit without printing the message. — Type inspection Turn the experiment into a script. The new ki -f script.kts mode runs a file without an interactive terminal and exits with a non-zero status if compilation or execution fails. That makes it usable from small automation tasks as well as an interactive session. — Script mode, Use case To experiment with your own code, add local JARs or directories with -cp, or use :classpath add inside a running session. For example, ki -cp libs/my.jar -f script.kts runs a script against a local library. — CLI and commands The new --compiler-option flag lets you pass compiler options, including plugins, when launching ki. We tested kotlinx.serialization 1.12.0 with @Serializable classes in both the REPL and -f scripts. — Compiler options Compared with main.kts, ki does not improve caching or compiler-plugin integration. main.kts caches compiled scripts on disk, while ki -f recompiles on each run. Both require compiler plugins to be configured at startup, which can also be handled by a script wrapper. The reason to choose ki is its interactive workflow. — ki script execution, main.kts cache The release uses Kotlin 2.5.0-Beta2 and requires JDK 17+. The download is 70.1 MB, or 77.3 MB unpacked, excluding the JDK. Download ki-archive.zip from the release page, unpack it, and launch bin/ki on Linux/macOS or bin\ki.bat on Windows. Version 0.6.0 is expected to become available through SDKMAN! soon. — Pinned versions, Release Release · Usage · Changes
Открыть в TelegramKotlin 2.5.0-Beta2 (3/3) The final part of our Kotlin 2.5.0-Beta2 notes covers multiplatform, Swift, JS and Wasm. Major changes: 1. Fewer artifacts to publish. Publishing a KMP library can mean uploading a separate artifact for each target. Kotlin Archive bundles metadata and JS, Wasm and Native libraries into one .kar.xz file. Enable kotlin.publicationFormat=KOTLIN_ARCHIVE to publish it. KGP 2.5.0-Beta2 reads the archive and selects the required platform content automatically. Kotlin Toolchain support is still pending. — KT-88526, KT-88527, KT-88529, KTC-5781 2. Library compilation and compatibility. KLIBs are the compiled libraries used by Kotlin/Native, JS and Wasm. Calls to inline functions from dependencies are expanded before the library is saved, including in stdlib and kotlin-test builds. The binary format moves to ABI 2.5; cinterop can still generate ABI 2.4 libraries when older consumers need them. — KT-88020, KT-87450, KT-84721 3. Android projects need a new integration. Projects using org.jetbrains.kotlin.android or the legacy KMP Android integration now get deprecation warnings on every supported AGP version. For Android projects, the migration path is AGP 9+ with built-in Kotlin; for KMP libraries, use com.android.kotlin.multiplatform.library. Old Kotlin source-set accessors in the Android extension now fail with deprecation errors. — KT-88622, KT-88380 4. Common code rebuilds when its JVM implementation changes. With separate KMP compilation, changing a class exposed through actual typealias could leave common callers using an outdated overload. The fixes make affected code recompile. JVM incremental compilation of common sources also gets a public setting: kotlin.jvm.enableIncrementalCompilationOfCommonSources. — KT-88762, KT-88018, KT-89044 5. Check your Native target list before upgrading. Builds that still declare watchosArm32 must remove it: Xcode 27 no longer supports the target. macosX64, watchosX64 and tvosX64 now produce deprecation errors, while Android Native targets warn. C interop code using CVariable.Type must migrate too; for example, use sizeOf<T>() to query a C type’s size. — KT-78078, KT-84955, KT-87873, KT-88374 6. Use exported Kotlin APIs through SwiftPM. A Swift app can now consume an exported Kotlin API as a local Swift package. swiftPackageIntegration {} generates Swift sources and packages the Kotlin binaries in an XCFramework, so the app can add a package dependency without a Gradle build phase in Xcode. Configure it under export.swift {}; direct Xcode integration remains available. KDoc and supported Kotlin extensions also reach the Swift API. — KT-89803, KT-87989, KT-84191, KT-72556 7. More useful types for TypeScript callers. Exported type aliases and nested interfaces preserve more of your Kotlin API’s structure in .d.ts files. -Xdts-use-unknown-instead-any makes callers check values exported as unknown before using them. A new declaration generator runs in a separate Gradle task and is enabled by default. The es2020 target also makes the JavaScript requirement for BigInt explicit. — KT-88294, KT-49795, KT-49791, KT-87087 8. Less setup for Wasm apps and browser tests. WASI Preview 2 programs using only the stdlib’s WASI APIs no longer need wit-bindgen just to provide the required cabi_realloc memory-allocation export. For browser apps, the experimental Playwright test DSL now supports wasmJs, letting you configure browser test runs in Gradle. Companion-block fixes also correct static-member initialization. — KT-88027, KT-87082, KT-85772 9. JS effect analysis. New effect analysis lets dead-code elimination discard unused properties with pure initializers while retaining side effects. — KT-87024, KT-87026, KT-87027, KT-87029
Открыть в TelegramKotlin 2.5.0-Beta2 (2/3) More changes in Kotlin 2.5.0-Beta2: stdlib, JVM and migration. Major changes: 1. Java interop. JetBrains @Unmodifiable and @UnmodifiableView enforce read-only collection types, with violations becoming errors in 2.5. Beta2 adds JVM target 28. — KT-79656, KT-89646 2. Unicode code points. The experimental kotlin.text.unicode.CodePoint value class represents a Unicode code point, with surrogate-pair conversions, arithmetic, ranges and string-builder helpers. It requires ExperimentalUnicodeApi opt-in. — KT-24908 3. UUIDs and math. Uuid.generateV4() and Uuid.generateV7() are Stable; generateV7NonMonotonicAt() remains experimental. The stdlib also adds kotlin.math.TAU, equal to 2 * PI. — KT-89662, KT-83426 4. Stdlib and tests. Experimental Boolean.onTrue / onFalse conditionally run an action and return the receiver; ifOrNull(condition) { … } returns the block result or null. Unmatched exhaustive when exceptions include subject information. @BuilderInference now gives a deprecation error. The callback overload of assertNotNull is deprecated; use assertNotNull(value).let { … }. — KT-6938, KT-86518, KT-52400, KT-86760 5. Lombok builders. The Kotlin Lombok plugin supports @Builder on Kotlin classes, including @Singular and @Builder.Default — KT-87686, KT-87682, KT-87886 6. Return value checker DSL. Experimental Gradle properties returnValueCheckerMode and returnValueCheckerModeForTests configure production and test compilations separately. Unset test mode inherits the production setting. — KT-74808 7. Compiler reference index. Gradle and Maven enable compiler reference index generation by default outside CI. IDE consumption depends on IDE support. — KT-81782 8. Removed compatibility paths. Language/API versions 2.0 and 2.1 are no longer supported. The deprecated org.jetbrains.kotlin.js plugin is removed; use the Kotlin Multiplatform plugin with a JS target. — KT-86132, KT-85440 9. Tool and dependency versions. The minimum supported versions are Gradle 8.14.x and AGP 8.8.2. Wasm tooling moves to Binaryen 133 and Wasmtime 49.0.1. — KT-84114, KT-88619, KT-89856, KT-89813 Run the compiler on JDK 17+. Beta2 upgrades the warning on older runtime JDKs to an error. -Xallow-pre-17-runtime-jdk is a temporary opt-out, scheduled to stop working in 2.5.20-Beta1. Generated bytecode can still target older JVMs — KT-88174.
Открыть в TelegramKotlin 2.5.0-Beta2 (1/3) Kotlin 2.5.0-Beta2 is out. These notes also include changes introduced in Beta1. This part covers the language and compiler. Major changes: 1. Value classes with multiple properties. Beta2 introduces Alpha support behind -Xfull-value-classes, including abstract/sealed value-class hierarchies. It produces pre-release binaries. JVM experiments with Project Valhalla additionally require -Xvalhalla-value-classes, JVM target 28+ and -Xjvm-enable-preview. — KT-84904, KT-87569, KT-89646 2. Unused values. Unnamed locals (val _ = compute()) and the return value checker are Stable. Beta2 enables check mode by default with language version 2.5: it warns for unused results from libraries marked for checking, including the stdlib. full also marks your own declarations. @IgnorableReturnValue works with the checker disabled; the experimental returnsParameter contract tracks results through receiver-returning functions. — KT-87297, KT-87312, KT-87295, KT-88312 3. Name-based destructuring syntax. Positional destructuring with square brackets and the full name-based form with parentheses are now enabled by default. Name-mismatch warnings still require -Xname-based-destructuring=name-mismatch; the short name-based form requires -Xname-based-destructuring=complete — KT-19627 4. Version overloading is Stable. @IntroducedAt("1.1") marks when an optional parameter was added. The compiler generates hidden overloads for earlier signatures, allowing libraries to preserve compatibility with already compiled callers when adding parameters with default values — KT-86090 5. Compile-time constants. Supported standard library calls can now be used in constant expressions without a feature flag. Errors in a const val initializer point to the offending expression and explain the restriction, such as control flow in a constant initializer — KT-88326, KT-86086, KT-80964 6. Companion blocks and extensions. -Xcompanion-blocks enables blocks alone; -Xcompanion-blocks-and-extensions enables both features. Companion extensions still produce pre-release binaries. On Kotlin/Native, classes compiled with companion blocks enabled follow JVM-like initialization rules — KT-87436, KT-87412 7. Callable references to contextual functions. Experimental -Xcallable-references-to-contextual allows users.forEach(::save) when save has context parameters. The reference captures context arguments when it is created; callers do not supply them again. — KT-86626 8. Stricter equality diagnostics. Opt-in -Xstrict-equality-for-structural-classes warns about incompatible equality comparisons involving structural classes, including data classes and data objects. This implements use-site warnings, not the whole custom equality-bounds proposal. — KT-89201 9. Context-sensitive resolution. Unqualified enum entries now work in more generic calls, including Gradle Property<T>-like cases and mutable collection operators such as +=. — KT-81558, KT-83304, KT-80943
Открыть в Telegramkotlinx.serialization 1.12.0 After just over six months of development and 63 commits since 1.11.0, this release brings stable APIs, faster JSON, and Protobuf messages that can retain fields they do not understand. Major changes: 1. More APIs are stable. @KeepGeneratedSerializer, @SerialInfo, JsonNamingStrategy, ContextualSerializer, descriptor builders such as listSerialDescriptor, and JSON builder addAll overloads no longer need serialization opt-ins. The serializers for kotlin.time.Instant and kotlin.uuid.Uuid also drop their standard-library experimental annotations. — #3216, #3239, #3261, #3263 2. Preserve unknown Protobuf fields. Add val unknownFields: ProtoUnknownFieldHolder = ProtoUnknownFieldHolder.Empty to a serializable message. Fields absent from your model survive decoding and re-encoding, so an older client can relay a newer message without losing them. This is part of the experimental Protobuf format. — #2860, Guide 3. Faster JSON processing. ASCII input gets a faster decoding path for Okio and kotlinx-io sources. Decoding through JsonElement uses a rewritten loop, with especially large gains for alternative field names. On JVM, faster string escaping delivered up to 30% higher throughput in the cited large-string benchmark. — #3225, #3220, #3248 4. Clearer JSON failures and a nesting limit. Exceptions such as IllegalArgumentException from custom deserializers or class constructors are wrapped in JsonDecodingException, preserving the cause and adding JSON-path context. Existing SerializationExceptions still propagate. JSON parsing now has a default nesting limit of 400; the experimental maxNestingDepth setting adjusts it. — #3235, #3246 5. CBOR uses less memory and fixes unsigned values. Collections with a known size can preallocate storage when decoding. Unsigned values above the corresponding signed type's maximum now encode as positive CBOR integers. Previously encoded values remain readable. — #3191, #3192, #3194 6. Built with Kotlin 2.4.10. The final release uses Kotlin 2.4.10 and includes all changes from 1.12.0-RC. GitHub release
Открыть в TelegramKotlin Archive: smaller multiplatform publications Kotlin Archive (.kar) is a new publication format described in KEEP design notes, motivated by Maven Central’s publishing limits. Multiplatform libraries currently publish separate components for their targets, multiplying files and repeating similar content. The format bundles common metadata, supported platform KLIBs and C-interop KLIBs into one archive per library module. JVM, Android and custom targets keep their separate components. A .kar is an uncompressed ZIP; the published file is .kar.xz. XZ can compress similar content across entries — useful when different targets contain almost identical code. ZIP keeps the directory structure accessible to existing tools after decompression. The design notes report that the full cryptography-kotlin publication drops from 7,539 files / 91 MB to 1,036 files / 23 MB. Around 16 MB of the result comes from one module bundling OpenSSL. The savings depend on the library: large platform-specific native binaries limit compression. For bundled targets, Gradle variants point to the archive in the root component instead of a separate platform component. Build tools unpack the relevant content and can reconstruct the old artifacts. The notes document the layout and metadata changes so build systems beyond Gradle can support it too. The scope is publication size and file count. Kotlin Archive leaves the dependency model alone; the separate UKlib proposal tackles that broader problem. Compatibility matters: Kotlin Gradle plugin 2.4.20 and earlier cannot consume the new format. Version 2.4.20 warns when .kar files reach the compiler classpath; 2.4 and earlier silently ignore them. The implementation tracker targets 2.5.0-Beta2 Design notes · Implementation tracker · Maven Central limits
Открыть в TelegramKotlin Toolchain 0.13 — and the tools I’ve built around it JetBrains now recommends Kotlin Toolchain for most new KMP projects. With 0.13, the story includes SwiftPM dependencies, Compose resources in published libraries, and faster Kotlin/Native debug rebuilds. A good moment to share the tools I’ve been building around it. Start with your AI agent. My Kotlin Toolchain skill in kortex covers the 0.13 project model, CLI, multiplatform configuration, publishing, and the details that are easy to get wrong. It also includes guidance for the GitHub Actions below, so your agent has the context to set up CI too. Give the project a CI workflow. setup-ktc installs the CLI and caches toolchain downloads, dependencies, JDKs, and Kotlin/Native data. ktc-check builds, runs tests and plugin checks, and brings the results back as job summaries, failure annotations, and report artifacts. update-ktc keeps both wrappers in sync and opens an upgrade PR after build/check validation. For libraries, ktc-publish runs checks and prepares a Maven Central bundle by default; publishing to a repository is an explicit mode. Fill in the build tooling. Kotlin Toolchain cannot publish build plugins yet, so I made ktc-plugins as a temporary bridge: it installs plugin sources from GitHub, registers them in your project, and locks the resolved commit. Updates and restores go through the same tool. There are plugins for the everyday jobs: ktc-ktfmt for formatting, ktc-bcv for reviewing public JVM API changes, ktc-kover for JVM coverage reports and thresholds, ktc-dokka for JVM API docs, and ktc-jib for JVM container images without a Docker daemon. And yes, Quarkus too. ktc-quarkus brings Quarkus builds into a Kotlin Toolchain project: fast/uber JARs, native binaries, container images, and dev mode with Kotlin live reload. The plugin runs Quarkus augmentation directly. Code generation and integration tests still have gaps, but there is already plenty to try. If you’re starting a project with Kotlin Toolchain, give these a try. I’d love to hear what works for you, what breaks, and which missing piece you’d want next. JetBrains announcement · Agent skill · Plugin installer
Открыть в TelegramKotlin Toolchain 0.13.0 Kotlin Toolchain 0.13.0 brings Native compiler caches, Compose resource publishing, browser tests for Wasm and a new project wizard in the CLI. Major changes: 1. Updated default versions. Kotlin 2.4.20, Compose 1.12.1, Ktor 3.6.0, Spring Boot 4.1.1, KSP 2.3.12, kotlinx.rpc 0.10.4 and Lombok 1.18.48 become the defaults. — KTC-5733, KTC-5952, KTC-5953, KTC-5954, KTC-5955, KTC-5956, KTC-5957 2. Faster Kotlin/Native debug builds. Compiler caches reuse compiled dependencies and support incremental linking on targets with cache support. Controlled by settings.kotlin.compileIncrementally, this applies to non-optimized binaries; compilation to KLIBs still runs as a whole — KTC-5422 3. A KMP wizard in the terminal. kotlin init and the new kotlin new share an interactive flow for choosing a template or configuring a Compose Multiplatform project, including target platforms and tests. init uses the current directory; new creates a new one — KTC-5478 4. Compose Hot Reload is on by default for JVM Compose apps. kotlin run now starts JVM apps with Compose enabled in Hot Reload mode. Use --no-compose-hot-reload to opt out; the explicit enabling flag is now --compose-hot-reload. — KTC-5824, CLI implementation 5. Compose resources travel with KMP libraries. Toolchain can now publish composeResources and bundle resources from published dependencies into apps. KMP publications also carry SwiftPM dependency metadata; libraries depending on local Swift packages cannot be published — KTC-5698, KTC-3585, KTC-5832 6. Wasm/JS tests run in a browser. The CLI gains browser-based testing for Wasm/JS modules. Separately, --include-tag and --exclude-tag accept JUnit tag expressions for JVM and Android tests; tests on other platforms count as untagged — KTC-5576, KTC-4627 7. Less friction for library authors. settings.kotlin.explicitApi: strict enforces explicit API declarations without affecting test sources. JARs and executable JARs use fixed entry timestamps by default, removing a source of different hashes across clean rebuilds — KTC-5787, KTC-5784 8. More iOS setup is automatic. Toolchain checks Xcode's installation, first-run state and license acceptance, and provisions missing iOS platform components and simulators. Xcode itself still needs to be installed manually — KTC-679 9. Choose which Android ABIs to package. settings.android.abiFilters: [arm64-v8a, x86_64] limits the native libraries shipped in the app. Toolchain also warns when an ABI is missing libraries present for other ABIs, helping catch potential runtime loading failures — KTC-5897 10. One test-output format across platforms. The default pretty output now presents test results consistently across platforms, replacing the different JVM and Native runner formats. — KTC-4232 11. Tool and SDK downloads show progress. The CLI reports download progress while provisioning tools and SDKs, making long first builds easier to follow. — KTC-5821 Check these when upgrading. AMPER_BUILD_DIR becomes KOTLIN_TOOLCHAIN_BUILD_DIR, and explicit layout: amper becomes layout: default. Android apps need a configured settings.android.namespace; published libraries can derive it from publishing coordinates — KTC-5543, KTC-5972, KTC-5856, KTC-5853 Update from your project directory with ./kotlin update.
Открыть в TelegramKotlin at 15: backend growth and KMP momentum JetBrains has published The State of Kotlin in 2026, looking back at 15 years of the language. The strongest themes are backend adoption and Kotlin Multiplatform. Android remains the largest use case: 63% of surveyed Kotlin developers build for it. Backend is close behind at 53%. These categories overlap, but the figures show how far Kotlin's usage extends beyond mobile. In JetBrains IDE telemetry, the share of backend organizations using Kotlin rose from 20% to 26% between 2023 and 2026. The report describes a practical adoption path: teams build new services in Kotlin alongside their existing Java systems. KMP has the clearest growth story. Usage among surveyed cross-platform developers rose from 7% to 18% between 2024 and 2025. Separately, Appfigures data puts KMP in nearly 3% of the top 10,000 App Store apps by mid-2026, up from under 1% in early 2024. Adoption also goes deep: around 60% of projects in the KMP surveys share all or almost all their business logic. In the 2025 survey, 81% of KMP users reported using Compose Multiplatform for UI. A quieter milestone is the standard library's formal security and support policy, with defined support periods and security patching. The report identifies this as addressing an enterprise adoption barrier. Compiler and build-tool support remain outside its scope. Announcement · Full report
Открыть в TelegramKotlin 2.4.21-RC The release candidate for Kotlin 2.4.21 is out, with fixes for regressions in 2.4.20 and several older issues. Major changes: 1. Kotlin/JS. Production library builds once again shorten the names of non-exported fields and methods. In 2.4.20, these names were left unchanged even with -Xir-minimized-member-names=true. Another fix covers Kotlin classes with companion objects that extend external classes with companions: this could fail to compile for ES2015 or produce broken code for ES5 — KT-89449, KT-89363 2. Kotlin/Wasm. Passing a value of the wrong type to a (T) -> R lambda through an unchecked generic cast could cause a Wasm trap in 2.4.20. The fix restores ClassCastException, which Kotlin code can catch. Separately, the serialization plugin now generates valid deserializer code for classes such as @Serializable class Box<T : Base>, where Base is an open or abstract class. Previously, the generated Wasm could fail validation by wasm-opt during a production build — KT-89267, KT-89275 3. kotlin-reflect. Fixes a NoSuchElementException: Array is empty when inspecting Java methods that return a non-static inner class of a generic outer class, such as Outer<T>.Inner. This regression in 2.4.20 could also break MockK tests — KT-89280 4. Scripting. Cached .main.kts scripts now retain dependencies declared by imported scripts, fixing NoClassDefFoundError on repeat runs. In JSR-223, binding a value of a generic Java class such as ArrayList no longer makes subsequent eval() calls fail to compile. The compiler also closes script source streams that could remain open until GC and prevent file deletion on Windows — KT-89247, KT-89220, KT-88453 5. Kotlin/Native installation. The Gradle plugin no longer unpacks the Native distribution over an existing installation. Previously, this could replace files while another build was reading them. The fix addresses a race reported by AndroidX as intermittent linker failures, including truncated or malformed archive — KT-86251 Quieter SwiftPM imports. By default, xcodebuild now runs with -quiet, keeping warnings and errors visible without logging every compiler invocation. Use Gradle's --info for verbose output. Previously, importing large packages could fill CI logs before the actual build error appeared — KT-89285.
Открыть в TelegramKtor 3.6.0 Ktor 3.6.0 brings typed authentication, OpenID Connect, HTTP/3 for Netty and simpler Kotlin Multiplatform clients. Major changes: 1. Typed authentication — experimental. Context parameters carry the principal type from the authentication provider into the route. With jwt<User>(...), call.principal is a User inside authenticateWith(jwtAuth). The API also supports role checks and anonymous users — KTOR-9785 2. OpenID Connect — experimental. The new Oidc plugin adds typed authentication providers, sessions and browser login with automatically refreshed tokens — KTOR-9841, KTOR-8596 3. HTTP/3 for Netty — experimental. Configure an SSL connector, then opt in with enableHttp3 { }. The block exposes QUIC settings such as idle timeouts and flow-control limits. Netty can also serve cleartext HTTP/2 (h2c) and HTTP/2 over TLS on separate connectors in the same server — What's new, KTOR-9643 4. Less setup for KMP clients. Add ktor-client-engine-defaults to commonMain, then create HttpClient(): the dependency supplies a curated set of engines, and Ktor selects one for each target. File-based HttpCache storage now uses kotlinx-io's Path, moving it beyond JVM-only java.io.File APIs — KTOR-9645, KTOR-9735 5. More expressive request handling. Parameter conversion now supports Kotlin's Uuid, Byte and unsigned numeric types. call.receive<Preferences?>() accepts a nullable type directly; receiveNullable() is deprecated — KTOR-7468, KTOR-5577 6. Keep an explicit Accept header. Set acceptHeaderMergeStrategy = ContentTypeMergeStrategy.SkipIfPresent in client ContentNegotiation to preserve a request's own Accept header. Requests without one still get the registered content types — KTOR-5009 Also in this release. respondHtmlPartial replaces the deprecated respondHtmlFragment for unrestricted partial HTML. There is also WebRTC support for JVM, asynchronous DNS resolution for CIO, OpenAPI tag descriptions and JavaScript fetch() overrides. Announcement · What's new
Открыть в TelegramKotlin Toolchain 0.12.1 — fixes, migration and a safety net Kotlin Toolchain 0.12.1 is out with two bug fixes. Update from your project directory: ./kotlin update Additional updates A new Gradle migration guide. The official walkthrough maps Gradle projects, convention plugins, dependencies and source sets to Toolchain modules, templates and platform qualifiers. JVM-only modules can keep their existing source layout with layout: maven-like. Trying Toolchain should be a reversible decision. That's why I built ktc-to-gradle. Start a real project with Toolchain's simpler declarative model, evaluate it in practice and keep using it when it fits. If a missing capability gets in the way, the converter gives you an escape hatch to a conventional Gradle Kotlin DSL build without rebuilding the configuration from scratch. The goal is to give more teams the confidence to adopt and test Kotlin Toolchain today. The converter handles Toolchain 0.12 projects, including multiple modules, nested templates, version catalogs and platform-specific dependencies. It generates a Gradle 9.7.1 wrapper and keeps the original YAML and source files. --dry-run validates without writing; the README documents conversion coverage and current gaps. You can also use it to compare build performance and behavior between Gradle and Kotlin Toolchain on the same project. Built with Kotlin Toolchain itself. Both the converter and its integration-test harness use Toolchain. The harness builds and tests each fixture with Toolchain, converts it, then builds the result with the generated Gradle wrapper. Gradle is the system under test. The kortex skill is updated too. The 0.12.1 update regenerates the Kotlin Toolchain skill from the tagged upstream documentation, adds Gradle migration guidance and records both fixes. Available through kortex for Codex, Claude Code and Junie, it provides version-aware guidance for module.yaml, project.yaml, templates, dependencies, platforms and the kotlin CLI. Have fun with Kotlin Toolchain!
Открыть в TelegramKotlinPoet 2.4.0 KotlinPoet 2.4.0 adds support for explicit backing fields and fixes several bugs in generated code. It also changes how annotation arrays are written. Major changes: 1. Explicit backing fields. You can now set a backing field's type and initializer with PropertySpec.Builder.backingFieldType() and backingFieldInitializer(). For example, a property can expose LiveData<String> while storing MutableLiveData<String> in its backing field. The language feature is stable in Kotlin 2.4 — #2325, KEEP-0430 2. Preparation for multi-field value classes. KotlinPoet now accepts value class declarations with more than one constructor property, such as a Color with separate alpha, red, green, and blue values. Previously, its validation rejected them. Compiler support is still in development under KEEP-0454 — #2329, KT-84904 3. Shorter annotation arrays. Array arguments in annotations now use […] instead of arrayOf(…) or intArrayOf(…). For example, KotlinPoet will generate allowedTargets = [AnnotationTarget.CLASS]. The meaning stays the same, but the generated text changes. KSAnnotation.toAnnotationSpec() also handles varargs the same way as other arguments — #2361, #2360 4. Context parameters follow annotations. FunSpec and PropertySpec now place annotations before context(…). This fixes the ordering that caused IntelliJ to warn about generated declarations — #2374 5. KSP type resolution. Calling KSType.toTypeName() with the default resolver could throw NoSuchElementException for types such as Comparable<T>. It now looks up the type parameter in the enclosing declaration — #2368 6. Comments in code blocks. CodeBlock.Builder now has addComment() for adding // comments. Builders that work with code bodies now share the CodeBlockHolder.Builder interface, which also includes addComment() — #2340, #2347, #2331 Other fixes. TypeVariableName.equals and hashCode no longer overflow the stack on recursive type bounds. Operator names get and set are no longer wrapped in backticks. Expression bodies no longer affect the indentation of later declarations, and wrapped file comments keep their // prefix — #2320, #2338, #2365, #2315 KotlinPoet is now built with Kotlin 2.4.20 and KSP 2.3.11.
Открыть в Telegram