Skip to content

Upgrade to Kotlin 2.2 | Compose 1.8.3 / 1.8.2 | Serialization 1.9.0#1209

Merged
mikepenz merged 5 commits intodevelopfrom
feature/upgrade_dependencies
Jul 4, 2025
Merged

Upgrade to Kotlin 2.2 | Compose 1.8.3 / 1.8.2 | Serialization 1.9.0#1209
mikepenz merged 5 commits intodevelopfrom
feature/upgrade_dependencies

Conversation

@mikepenz
Copy link
Owner

@mikepenz mikepenz commented Jul 1, 2025

  • Kotlin 2.2.0
  • Compose 1.8.3 / Compose Multiplatform 1.8.2
  • Serialization 1.9.0
  • upgrade to a newer convention plugin version

@mikepenz mikepenz requested a review from Copilot July 1, 2025 19:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades core library versions and refactors the Gradle plugin surface to introduce an Android-specific plugin and new license-requirement behavior.

  • Bump Kotlin, Compose, and Serialization dependencies and convention plugin versions
  • Split the single Gradle plugin into a core plugin and an Android-specific plugin
  • Add a requireLicense option with strict-mode handling in AboutLibrariesTask

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
settings.gradle.kts Upgrade MikePenz version-catalog plugin from 0.3.9 to 0.6.0
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/BaseAboutLibrariesTask.kt Add requireLicense input property
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesTask.kt Implement requireLicense logic and restructure strict-mode flows
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesPluginAndroidExtension.kt Generalize Android task registration via a callback parameter
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesPluginAndroid.kt Add new Android-specific Gradle plugin
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesPlugin.kt Remove old Android flag check and always call core configureAndroidTasks
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesExtension.kt Deprecate old AndroidConfig, add requireLicense default convention
plugin-build/plugin/build.gradle.kts Register new aboutlibsAndroidPlugin with metadata
gradle/libs.versions.toml Bump serialization, navigation, and modelBuilder versions
gradle.properties Add Kotlin 2.2 and disable compatPatrouille
app/build.gradle.kts Apply new Android plugin and remove deprecated flag
app-test/build.gradle.kts Remove deprecated Android flag
README.md Note split plugin release
MIGRATION.md Document plugin split under v13.0.0
Comments suppressed due to low confidence (3)

plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesTask.kt:129

  • Introduce unit tests covering the new requireLicense behavior under both WARN and FAIL strict modes, ensuring libraries with missing licenses are handled correctly.
            val librariesWithoutLicense = if (requireLicense.get()) libraries.filter { it.licenses.isEmpty() } else emptyList()

README.md:44

  • Update the v13.0.0 link to point to the correct v13.0.0 tag (instead of the old 12.2.4), e.g. /tree/v13.0.0.
- Split Gradle Plugin | [v13.0.0](https://github.com/mikepenz/AboutLibraries/tree/12.2.4)

MIGRATION.md:3

  • Add a note about the new requireLicense property and its default behavior in strict modes so users know how to adopt it during migration.
#### v13.0.0

@get:Input
abstract val variant: Property<String?>

@Input
Copy link

Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

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

Use @get:Input instead of @Input to properly annotate the Kotlin property for Gradle’s incremental build inputs.

Copilot uses AI. Check for mistakes.
mikepenz added 3 commits July 4, 2025 12:56
- Compose 1.8.3 / Compose Multiplatform 1.8.2
- Serialization 1.9.0
@mikepenz mikepenz force-pushed the feature/upgrade_dependencies branch from 06f2a3b to f50935f Compare July 4, 2025 10:58
core = "1.16.0"
lifecycle = { require = "2.8.7" }
navigation = "2.8.9"
navigation = "2.9.0"
Copy link

Choose a reason for hiding this comment

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

⚠️ A newer version of androidx.navigation.safeargs than 2.9.0 is available: 2.9.1

core = "1.16.0"
lifecycle = { require = "2.8.7" }
navigation = "2.8.9"
navigation = "2.9.0"
Copy link

Choose a reason for hiding this comment

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

⚠️ A newer version of androidx.navigation:navigation-fragment than 2.9.0 is available: 2.9.1

core = "1.16.0"
lifecycle = { require = "2.8.7" }
navigation = "2.8.9"
navigation = "2.9.0"
Copy link

Choose a reason for hiding this comment

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

⚠️ A newer version of androidx.navigation:navigation-safe-args-gradle-plugin than 2.9.0 is available: 2.9.1

@mikepenz mikepenz merged commit c640289 into develop Jul 4, 2025
3 checks passed
@mikepenz mikepenz deleted the feature/upgrade_dependencies branch July 4, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants