RadiusNetworks / android-ibeacon-service

An Android library providing APIs to interact with iBeacons
http://developer.radiusnetworks.com/ibeacon/android/index.html
681 stars 244 forks source link

Added Ability To Push to Maven Central #37

Closed AndrewReitz closed 10 years ago

AndrewReitz commented 10 years ago

Copy the gradle.properties.dist to gradle.properties and fill in the fields. Run ./gradlew uploadArchives -Prelease to push to release, -Psnapshot to release to snapshots.

Also clean up build.gradle and added Travis Builds

davidgyoung commented 10 years ago

Thanks, Andrew. When I try doing a build, I get the error below. Any ideas? Thanks, David

$ gradle build

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 5.963 secs

AndrewReitz commented 10 years ago

It looks like your support library needs to be updated. Can you open up the sdk manager and see if there is a newer version?

davidgyoung commented 10 years ago

That did it. Something didn't like me being one dot version behind. So now I can do a ./gradlew release successfully, but I don't think it tries to sign or upload to maven central. Should this work a different way?

AndrewReitz commented 10 years ago

The release task is an artifact from what was there before. It looks like it's suppose to generate the eclipse build. I can add the upload task to that if you would like. Currently to upload it's ./gradlew uploadArchives -Prelease, to do a release ./gradlew uploadArchives -Psnapshot for snapshot, and ./gradlew uploadArchives for local.

AndrewReitz commented 10 years ago

I just updated to have the version to generate based off of the latest tag. Also updated so when you run ./gradlew release a complete release should be done. Also added mavenRelease and mavenSnapshot, which do the same things as uploadArchives -Psnapshot and uploadArchives -Prelease

AndrewReitz commented 10 years ago

Oh also moved the group to gradle.properties so that I can have it go to my snapshot when testing, without having to worry about checking in something wrong.

AndrewReitz commented 10 years ago

@davidgyoung What's the status on this? It looks like it's been merged in.

davidgyoung commented 10 years ago

Merged in e353fb2c6338e72b4d23f8f78a1247921b29f92a

On Tue, May 27, 2014 at 1:40 PM, Andrew Reitz notifications@github.comwrote:

@davidgyoung https://github.com/davidgyoung What's the status on this? It looks like it's been merged in.

— Reply to this email directly or view it on GitHubhttps://github.com/RadiusNetworks/android-ibeacon-service/pull/37#issuecomment-44308887 .