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

Canteen Gradle Plugin #122

Open
rmichela opened this issue Aug 22, 2019 · 3 comments
Open

Canteen Gradle Plugin #122

rmichela opened this issue Aug 22, 2019 · 3 comments

Comments

@rmichela
Copy link
Collaborator

Write a Canteen build plugin for Gradle that mirrors the Maven plugin.

@marcoferrer
Copy link

I’m working on sorting out some time to tackle an initial implementation of this. I do have a Gradle script in this project to manually add support until a proper plugin is published. I don’t think the actual plugin should follow what’s done in this script, but it could potentially hold others over in the mean time.

https://github.com/marcoferrer/kroto-plus/pull/87/files

@rmichela
Copy link
Collaborator Author

Thanks for the pointer! I know nothing about writing Gradle plugins, so this is a great seed. Do you think it's worth moving the jar packaging logic out of the Maven plugin into a shared lib both Maven and Gradle can use?

@marcoferrer
Copy link

That was the first thing that came to mind. The packaging logic should definitely be shared between the two plugins. The actual Gradle plugin is pretty simple and straight forward. I don’t think it would take me long to put together. One thing to consider is behavior. Should the plugin implicitly lookup the jar artifact configuration or should it be a configurable value? Plenty of Gradle project have multiple publishable artifacts. For instance I’m my case I wanted to bundle the spring bootJar and not the default. Specifically because I need spring to do some of its unpacking magic at startup.

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

No branches or pull requests

2 participants