-
Notifications
You must be signed in to change notification settings - Fork 84
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
Project refactoring broke future gradle support #274
Comments
Hi, Thanks for reaching us. Gradle support would be great addition to this project. Is that correct? |
Basically, yes. There is also lot of code thats currently in the Maven Mojo itself which could probably be refactored into a common foundation. My main goal is the RAML 1.0 -> Java Path (which is not supported by https://github.com/netfalo/gradle-raml-plugin yet). |
I will start refactoring
Yes please. RAML to Code path is the only one supported in |
Relates to #65 |
Do you think it is possible to allow customized code generation? Also it would be great to apply the plugin repeatedly with a set of generation rules (Models, Controllers, Clients) :) |
I spent a few hours trying to split apart the Maven stuff from the generation stuff (still work in progress), here is what I found so far:
Not that I meant this as a "everything is bad" thing, there has been a lot of great work by many people which is really amazing! I just wanted to point out that it won't be an easy thing to do. I think that the rule approach is quite powerful and - if one understands it - allows writing new generation rules easily. |
@stojsavljevic I did a first shot, basically I refactored the configuration quite a lot (and its still quite dirty) and split up the project. |
I updated my fork as requested :) |
Hello everyone,
I took a look into Gradle support with https://github.com/netfalo/gradle-raml-plugin as a working base.
In v1 the springmvc-raml-plugin had a structure that allowed only to include the required parts as a dependency to the gradle plugin, whereas for v2 there is only the maven plugin as artifact.
Additionally due to renamings the code is not quite portable.
In summary the refactoring of V2 as in the current state of the project architecturally breaks gradle support for the near future, as
I understand that this is still work in progress (as in https://github.com/phoenixnap/springmvc-raml-plugin/projects/1), so maybe we can adjust the whole thing a little?
I would like to suggest something along the lines of
Figuratively speaking springmvc-raml would be the car and there are different kinds of drivers (such as Maven, Gradle, Ant(?!), Integration tests or a simple console application).
Otherwise I think the Maven Plugin is great and stands for itself, so thanks a lot for all the time and effort! :)
The text was updated successfully, but these errors were encountered: