Skip to content

Migrate to KSP2#378

Closed
eduardbosch wants to merge 13 commits intoairbnb:rossbacher-manifestGenerationfrom
eduardbosch:feature/migrate-to-ksp2
Closed

Migrate to KSP2#378
eduardbosch wants to merge 13 commits intoairbnb:rossbacher-manifestGenerationfrom
eduardbosch:feature/migrate-to-ksp2

Conversation

@eduardbosch
Copy link
Copy Markdown
Contributor

Hi 👋

I've took some time to try to migrate the library to KSP2 with the help of Claude Code, as I didn't had much experience with KSP before.

My process was:

  1. Update all the dependencies, including Kotlin, KSP2, and xProcessor.
  2. Fix the compiler errors in DeepLinkProcessor.
  3. Run the tests and fix the DeepLinkProcessor to make the test pass.
  4. Test the sample app.
  5. Test the new app version at Job&Talent.

Everything looks good so far, but let me know is something should be changed.

This PR should fix #369

I saw there's another PR (#371) trying to update to KSP2, I'm not sure which one is better, but this one is up to date with the main branch and everything looks ready.

cc @rossbacher

@eduardbosch eduardbosch mentioned this pull request Dec 11, 2025
Closed
@eduardbosch eduardbosch force-pushed the feature/migrate-to-ksp2 branch 2 times, most recently from 2c56f1c to 8ebec09 Compare December 11, 2025 09:17
@rossbacher
Copy link
Copy Markdown
Collaborator

@eduardbosch thank you! We will need to merge #377 before that as we need that without ksp2 so that most likely will need to be rebased once that one gets reviewed and merged. Just fyi.

@eduardbosch eduardbosch force-pushed the feature/migrate-to-ksp2 branch from 2276eb6 to 89b4565 Compare December 15, 2025 13:24
@eduardbosch eduardbosch changed the base branch from master to rossbacher-manifestGeneration December 15, 2025 13:25
@eduardbosch
Copy link
Copy Markdown
Contributor Author

@eduardbosch thank you! We will need to merge #377 before that as we need that without ksp2 so that most likely will need to be rebased once that one gets reviewed and merged. Just fyi.

No problem, I've rebased the banch and fixed the conflicts. It should be ready now.
Would be nice if you can check if things work well in this KSP2 migration branch too, so I can try to solve things while #377 is being merged.

Let me know if I can help with anything.

@rossbacher
Copy link
Copy Markdown
Collaborator

As long as ./gradew check passes this should be good, I have no other tests that verify everything works other than those. Which should b e pretty comprehensive.

- Add namespace.
- Configure java version.
- Update Gradle.
Use the configureKsp function to initialize KSP.
KAPT does not add the parent class while KSP does
KSP shows values in different order than KAPT and it makes some tests to
fail. Ensure we have the same output for all processors.
Type elements can become invalid after PSI changes so it's safer to
query them when we need them.
@eduardbosch eduardbosch force-pushed the feature/migrate-to-ksp2 branch from 89b4565 to bc9bc39 Compare December 16, 2025 07:12
@eduardbosch
Copy link
Copy Markdown
Contributor Author

Great, so then it should be good.
I'll be rebasing this branch until the parent one is merged. Thanks

Update also to a compatible Gradle version
Gradle versions higher than 8.14 require JDK 17, thus it makes jitpack
to fail as it uses JDK 11 by default
@eduardbosch eduardbosch force-pushed the feature/migrate-to-ksp2 branch from 6063683 to e58d42a Compare December 18, 2025 10:49
Comment thread jitpack.yml
Comment on lines +1 to +2
jdk:
- openjdk17
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I needed to configure this in order to test the changes on my app. I'm not sure if that's something we want to keep or revert before merging this PR

@rossbacher rossbacher deleted the branch airbnb:rossbacher-manifestGeneration December 19, 2025 23:55
@rossbacher rossbacher closed this Dec 19, 2025
@rossbacher
Copy link
Copy Markdown
Collaborator

@eduardbosch This was closed by gibhub as it was based on my manifest generation branch, which is now merged. Rebase this on master and get all the tests running and we can review and merge that as a new release with ksp2 support.

Will probably be in the new year though.

@eduardbosch
Copy link
Copy Markdown
Contributor Author

No problem @rossbacher
I've already rebased and opened another PR #379

Merry Christmas and Happy New Year 🎄

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.

Request: KSP2 Support

2 participants