Skip to content

Conversation

@alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Oct 22, 2025

This PR migrates to newer version of KSP Gradle Plugin as the runtime dependency. The code was adjusted to adopt the type change in from Property<File> to DirectoryProperty in the KSP plugin extension.

The project is still built with the previous version of KSP Gradle Plugin.

Copilot AI review requested due to automatic review settings October 22, 2025 19:45
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 updates the KSP (Kotlin Symbol Processing) Gradle Plugin from version 2.1.21-2.0.1 to 2.2.20-2.0.4 as a runtime dependency, while maintaining the previous version for the build process through a new dogfoodingVersion property.

Key changes:

  • Updated KSP dependency version to 2.2.20-2.0.4 in runtime dependencies
  • Introduced dogfoodingVersion property to preserve 2.1.21-2.0.1 for build-time usage
  • Adapted code to handle API changes in the newer KSP version

Reviewed Changes

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

Show a summary per file
File Description
version.gradle.kts Bumped project version from 017 to 018
pom.xml Updated KSP runtime dependencies and moved auto-service-annotations scope from provided to compile
ksp/src/main/kotlin/io/spine/tools/core/jvm/ksp/gradle/KspBasedPlugin.kt Adapted to KSP API changes: replaced Property<File> with DirectoryProperty and updated path handling
ksp/src/test/kotlin/io/spine/tools/core/jvm/ksp/gradle/KspBasedPluginTest.kt Updated test to use .asFile for accessing file paths
buildSrc/src/main/kotlin/io/spine/dependency/build/Ksp.kt Added dogfoodingVersion property and updated main version
buildSrc/src/main/kotlin/BuildExtensions.kt Modified to use dogfoodingVersion for build-time KSP plugin
buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJvmCompiler.kt Updated internal version references to 017
buildSrc/src/main/kotlin/io/spine/dependency/Dependency.kt Enhanced artifact() method to accept optional version parameter
dependencies.md Updated dependency documentation with new KSP versions
config Updated subproject commit reference

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Oct 22, 2025
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review October 22, 2025 19:49
@alexander-yevsyukov alexander-yevsyukov merged commit 8c5f463 into master Oct 22, 2025
6 of 7 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the bump-ksp branch October 22, 2025 20:20
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.

3 participants