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 Chats in Telegram: RU https://kug.community/ EN https://kug.community/en Kotlin news and tips
Средние просмотры поста по дням
По дню публикации
Показать таблицей
| Дата | Просмотров на пост |
|---|---|
| 4 нояб. 2026 г. | 466 |
| 5 нояб. 2026 г. | 541 |
| 11 нояб. 2026 г. | 461 |
| 16 нояб. 2026 г. | 372 |
| 19 нояб. 2026 г. | 275 |
Самые просматриваемые за месяц
- 01Просмотры541Пересылки—Реакции13Комментарии—
- 02Просмотры466Пересылки—Реакции8Комментарии—
- 03Просмотры466Пересылки—Реакции8Комментарии—
- 04Просмотры456Пересылки—Реакции8Комментарии—
Новые посты
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
Открыть в TelegramСвязи
Похожие каналы
ППН/PPN@ppn_nochnoyТехнологии1,54 тыс.
ScanFactory News@scanfactoryТехнологии1,54 тыс.
Adventures in Dystopia@monologТехнологии1,53 тыс.
CURATOR | DDoS‑защита, CDN, AntiBot, WAF@curatorproТехнологии1,53 тыс.
Work & Beer Balance@workbeerТехнологии1,54 тыс.
Лаборатория развития нервной системы@rnslabТехнологии1,53 тыс.
t2.digital@t2_digitalТехнологии1,53 тыс.
Loginov Channel@loginovchannelТехнологии1,53 тыс.