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

Create Gradle plugin #29

Open
pablisco opened this issue Sep 15, 2022 · 5 comments · May be fixed by #40
Open

Create Gradle plugin #29

pablisco opened this issue Sep 15, 2022 · 5 comments · May be fixed by #40

Comments

@pablisco
Copy link
Collaborator

To ease user installation and distribution we should create a Gradle plugin that sets up ksp (if not already set up) and provide a DSL to configure KopyKat options.

@serras
Copy link
Collaborator

serras commented Sep 15, 2022

My experience with this is that setting up a custom plug-in is as hard as setting up a KSP processor. But using ksp you get some niceties like option handling for free.

@pablisco
Copy link
Collaborator Author

pablisco commented Sep 15, 2022

I think it's handy for options as the user can autocomplete when using kts Gradle.

@pablisco
Copy link
Collaborator Author

For instance, we could have a set up like:

plugins {
  id("kopykat") // may need package, not sure
}

kopykat {
  generateMutableCopy = false
}

@aSemy
Copy link
Contributor

aSemy commented Sep 24, 2022

I'd like to pick this up, I like Gradle :). Setting up some buildSrc convention plugins would help, so the Gradle publishing config can be applied on-demand, rather than in a subprojects{} block. I'll make a couple of PRs.

@aSemy
Copy link
Contributor

aSemy commented Sep 24, 2022

Please take a look at #40 - instructions are in the PR :) There are some bugs to work out, but overall works when I test manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants