Skip to content

Adding maven publish functionality for android client #710

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

Merged
merged 3 commits into from
May 21, 2015
Merged

Adding maven publish functionality for android client #710

merged 3 commits into from
May 21, 2015

Conversation

who
Copy link
Contributor

@who who commented Apr 30, 2015

This PR gives support for publishing android-java generated clients to maven repositories.

Often, as a part of their workflow, devs find it convenient to easily build libraries and publish them to their local maven repository. Maven makes this very easy, as you just have to issue mvn clean install, but now that we are using gradle for building the android client, we need to do some extra work to talk with maven and populate the build artifacts in the correct places. Because the default "maven-publish" gradle plugin does not work well with android libraries, I used the approach from https://github.com/dcendents/android-maven-plugin.

I wrapped the new plugin invocation in mustache booleans, so users of swagger-codegen can easily toggle it if they wish.

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.

2 participants