Repository navigation
build: Kotlin 2.5 以降へ差し替えたビルドでは macosX64 を宣言しない - #89
Merged
Merged
Conversation
KGP 2.5.0-Beta1 で macosX64() の非推奨が ERROR へ上がり、 @Suppress("DEPRECATION") では抑制できずに runtime-api のビルドスクリプトの コンパイルが失敗していた(kotlin-prerelease の週次ビルドが設定段階で停止)。 適用中の KGP が 2.5 以降なら宣言をとばし、呼び出しのコンパイルは DEPRECATION_ERROR の抑制で通す。2.5 へ移行する時はこの分岐を削除し、 macosX64 の宣言をやめる。 カタログの宣言版(2.4.20)では従来どおり macosX64 を宣言し、配布物は変わらない。 Changelog: none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2nSQTgRy5Azh586umXMZb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
kotlin-prerelease (weekly)が Kotlin 2.5.0-Beta1 を対象に 3 週連続で失敗している(例: https://github.com/ProjectMapK/sealed-class-enumizer/actions/runs/37962428933 )。KGP 2.5.0-Beta1 で
macosX64()の非推奨が ERROR レベルへ上がり、@Suppress("DEPRECATION")では抑制できなくなった。そのため
runtime-api/build.gradle.ktsのスクリプトのコンパイルが設定段階で失敗していた。変更
getKotlinPluginVersion())が 2.5 以降ならmacosX64を宣言しないDEPRECATION_ERRORの抑制で通す(2.4 系では WARNING のためDEPRECATIONも残す)macosX64の宣言をやめる旨をコメントに明記したカタログの宣言版(2.4.20)では従来どおり
macosX64を宣言するため、配布物は変わらない。そのため CHANGELOG のエントリは書かず、Changelog: noneのトレーラを付けている。検証(ローカル)
MacosX64系タスク-PkotlinVersionOverride=2.5.0-Beta1androidNative*の非推奨警告w:のみ)ktfmtFormat(スクリプトを含む)を実行し、整形による差分は無かった./gradlew build全体は、作業環境に JDK 17 が無く toolchain の取得も遮断されているため未実施。CI に委ねるkotlinUpgradeYarnLock以降)で 2.5 に別の問題があるかどうかは、マージ後の週次実行、またはworkflow_dispatchで確認する🤖 Generated with Claude Code
https://claude.ai/code/session_01E2nSQTgRy5Azh586umXMZb
Generated by Claude Code