Skip to content

Upgrade Kotlin to 2.0.21 and update stdlib dependencies - #81

Closed
jatezzz wants to merge 1 commit into
stagefrom
feature/kotlin-update
Closed

jatezzz wants to merge 1 commit into
stagefrom
feature/kotlin-update

Conversation

@jatezzz

@jatezzz jatezzz commented Apr 11, 2025

Copy link
Copy Markdown
Contributor

This commit updates the Kotlin version to 2.0.21 across the project.

  • Updated Kotlin version to 2.0.21 in build-logic/build.gradle.kts, constants/build.gradle.kts, template build scripts, and root toml file.
  • Forced the use of Kotlin stdlib 2.0.21 in buildGradle.kt within templates-api and updated version in constants.
  • updated ktPluginKts and ktPluginGroovy to version 2.0.21 in templates-api.
  • Updated the forced versions for kotlin-stdlib, kotlin-stdlib-jdk7, and kotlin-stdlib-jdk8 in templates-api to 2.0.21.
  • fixed a type issue in AdapterViewAdapter.

This commit updates the Kotlin version to 2.0.21 across the project.
- Updated Kotlin version to 2.0.21 in `build-logic/build.gradle.kts`, `constants/build.gradle.kts`, template build scripts, and root toml file.
- Forced the use of Kotlin stdlib 2.0.21 in `buildGradle.kt` within `templates-api` and updated version in constants.
- updated `ktPluginKts` and `ktPluginGroovy` to version 2.0.21 in templates-api.
- Updated the forced versions for kotlin-stdlib, kotlin-stdlib-jdk7, and kotlin-stdlib-jdk8 in templates-api to 2.0.21.
- fixed a type issue in `AdapterViewAdapter`.
@jatezzz
jatezzz marked this pull request as ready for review April 11, 2025 22:18
@jatezzz jatezzz closed this Apr 11, 2025
@jatezzz
jatezzz deleted the feature/kotlin-update branch April 14, 2025 13:09
davidschachterADFA added a commit that referenced this pull request Nov 21, 2026
* style: spotless reformat, no functional change

Spotless's ratchet reformats composite-builds/build-logic/common/build.gradle.kts
in full (2-space indent to tabs) once ADFA-7220 touches it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7220: Store Maven repo files under the .module url name

cacheToLocalMavenRepo copied each file from a Gradle module cache under its
cache file name. Gradle's cache keeps a file under the "name" its .module
metadata gives it, but a build asks the repository for the "url". For
androidx.lifecycle:lifecycle-viewmodel-android:2.9.4 they differ
(lifecycle-viewmodel-release.aar against lifecycle-viewmodel-android-2.9.4.aar),
so a repository this task made failed offline builds with "Could not find".

renameFilesToModuleUrls() in build-logic/common, a port of dev-assets'
rename_files_to_module_urls (dev-assets #81), runs after the copy: it stores
each variant file under its url when that differs and has no slash, and
removes the name copy unless another variant serves that name.

ModuleUrlNamesTest ports dev-assets' seven cases: 7 of 7 pass, and with the
function stubbed out the three rename cases fail. Run end to end on a cache
holding lifecycle-viewmodel-android 2.9.4, cacheToLocalMavenRepo now writes
lifecycle-viewmodel-android-2.9.4.aar and no lifecycle-viewmodel-release.aar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7220: Address review: test that a module that is not JSON stops the conversion

renameFilesToModuleUrls() throws IllegalStateException naming the file
when a .module can't be parsed, as dev-assets' script exits; that path had
no test. 8 of 8 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant