- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Bump KSP #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump KSP #46
Conversation
There was a problem hiding this 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.4in runtime dependencies
- Introduced dogfoodingVersionproperty to preserve2.1.21-2.0.1for 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>withDirectoryPropertyand updated path handling | 
| ksp/src/test/kotlin/io/spine/tools/core/jvm/ksp/gradle/KspBasedPluginTest.kt | Updated test to use .asFilefor accessing file paths | 
| buildSrc/src/main/kotlin/io/spine/dependency/build/Ksp.kt | Added dogfoodingVersionproperty and updated main version | 
| buildSrc/src/main/kotlin/BuildExtensions.kt | Modified to use dogfoodingVersionfor 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.
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>toDirectoryPropertyin the KSP plugin extension.The project is still built with the previous version of KSP Gradle Plugin.