Skip to content

Conversation

@Centril
Copy link

@Centril Centril commented Jan 7, 2014

Added gradle files for building via gradle.
Running the following will create a folder maven-deploy with .aar release build of the project.

./gradlew clean build uploadArchives

gradlew.* scripts and a gradle wrapper also added.

Also fixed the target version number in the manifest to the same as project.properties

@philipesteiff
Copy link

Hi,

How can i import aar in my gradle project?

@Centril
Copy link
Author

Centril commented Jan 29, 2014

To: @philipesteiff

It depends on if you want to do it via a remote maven repository or via a local maven repository.

The task uploadArchives will create a folder android-numberpicker/maven-deploy/ under which the local maven repo resides.

Take a look at: https://github.com/toxbee/mvn-repo/tree/master/maven-deploy/net/simonvt/numberpicker/android-numberpicker/1.0.0 for an example.

I usually copy the maven-deploy folder into a different git repo and push them to a remote and add that remote as a repository in my android project.

If you'd like, you can use mine: https://github.com/toxbee/mvn-repo
Instructions on how to use are there.

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