Skip to content
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

Ensure that KSP-generated META-INF services included in output jar #997

Closed
wants to merge 2 commits into from

Conversation

jbarr21
Copy link
Contributor

@jbarr21 jbarr21 commented Jul 28, 2023

Fixes #991

@jbarr21 jbarr21 force-pushed the jb/auto-service-fix branch from 71ec040 to 96006ac Compare July 28, 2023 04:18
/**
* Copy generated resources from KSP task into generated folder
*/
private fun Iterator<String>.copyServicesToGenClasses(directories: Directories): Iterator<String> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for putting this pull request up! Are you able to add a test case or two so that this doesn’t regress in the future?

Copy link
Contributor

@zalewskise zalewskise Jul 30, 2023

Choose a reason for hiding this comment

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

Proguard files are also missing (added #991 (comment)), would it make sense to include every dir from MANIFEST_DIR instead of just SERVICES_DIR?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, it would.

It's hard enough to figure out what the plugins are doing, otherwise.

Choose a reason for hiding this comment

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

would be an easy change then right? just remove the if ("/$SERVICES_DIR" in it) ? or will it contain files we don't want ?

@restingbull
Copy link
Collaborator

superseded by #1094

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.

META-INF files generated by KSP processor are missing from output
5 participants