ahorn / android-rss

Lightweight Android library to parse RSS 2.0 feeds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle support + AAR on maven?

danielesegato opened this issue · comments

Hi,

can you add support from gradle and publish as artifact on maven central?

you can follow this guide:
http://gmariotti.blogspot.it/2013/09/publish-aar-file-to-maven-central-with.html

Hi Daniele,

I'd be happy to accept a "git pull" request on this.

With kind regards,
Alex

Hi @ahorn

I can can implement part of this stuff and do a pull request.

But there's something I can't do and YOU have to do.

specifically:

  • creating a sonatype account
  • creating a sonatype ticket and reply to it the first time
  • creating a PGP key for you and configuring your system to use it

If you are ok with this I can provide the "code-part" of the thing as and do a pull request to you.

Regards,
Daniele

Thanks Daniele for looking into this. I am generally open to your suggestion. Forgive me, I'm not a deployment expert so I have a few questions:

  • Does the public part of the PGP key (and hence the private key) have to remain fixed once the project is deployed to Sonatype? Or is it more like having (say) my Github SSH key that I can easily regenerate if need be?
  • How does the current deployment of android-rss in your setting look like?
  • What benefits would a deployed Sonatype package bring in your setting?
  • Are there any fees, whether hidden or not?

With kind regards,
Alex

Any updates on this?

@warmwaffles

I am afraid, android-rss is currently only still available through Git. The comments from February sought to better understand the role of Sonatype packages in the workflow of people who are using android-rss. Perhaps you could shed more light on it?

I am particularly nervous about the signing and the deployment steps.

@ahorn what's there to be nervous about? I haven't done deploys but I think it would be worth while to learn.

It's not an issue when it comes to learning about it. The issues have more to do with the things I bring up in February. If these are non issues, would you be willing to do it?

Alex

Currently looking at how this can be accomplished. I am going to look at sonatype to see what costs there are if any. I have some other libraries I want to live there as well as maven.

Is there any update on this? I'd like to use this library with my project via Gradle.

commented

I don't know whether @warmwaffles or @danielesegato have done this in the end.

Personally I compiled and placed the library on my company private artifactory and used the dependency from there.

Still think the library, to be useful for most, has to be placed on maven central.

It's true the documentation about how to do this is very lacking, I invite you to push for a better documentation about this in the google products forum about gradle/android studio and or bug reports

commented

Thanks for the update, and the pointers in the right direction. I am glad you are finding android-rss useful.

If the grade+Android documentation is not that great, as you say, I think I'd prefer to rely on someone with more expertise on the deployment side of things because they are likely to be able to knock this out in a fraction of the time than me and it would give the project a more collective sense of ownership.

@ahorn I'm very new to Android and Java and to access android-rss via Gradle (like nhaarman/ListViewAnimations) would make it super easy)

commented

@a1exus Okay. Could you please model a the build script after the one in the nhaarman/ListViewAnimations) setup?

@ahorn haha, did I mention that I'm VERY new to this?) I wouldn't even know where to start.

Btw, it's very easy to publish GitHub repositories on JitPack.io as maven dependencies. Don't even need to upload anything. Here is android-rss already available: https://jitpack.io/#ahorn/android-rss/v1.0-rc1

commented

@jitpack-io, thank you very much! Could I ask @a1exus, @warmwaffles, @danielesegato to confirm that this fixes the issue. Once I get the okay, I update the README.

Well.. That should work out.

I still would prefer a maven artifact but that allow including in the project as dependency so I would say it does solve the issue.

commented

Thanks @danielesegato. If you've (and preferably one other person) actually tried using the dependency in your own project(s) and it works, I'd suggest closing the issue.

@ahorn I was able to add @jitpack-io repositories and dependencies to gradle, however since i'm new someone else should try it and verify as well.

commented

Thanks @a1exus. Anyone else?

Excellent, I used JitPack with this library, and worked great! Thank you so much @ahorn and @jitpack-io !! Please add this trick in the README because it was really difficult to find it. Thanks again!

commented

Thank you very much, @lucasfarre, @a1exus @danielesegato for validating that the issue is solved. No check-sums are used to date as far as I can tell. So I trust that you've manually verified that the pulled in dependency is in fact what you'd expect?

@ahorn Hi! We run maven with -DcreateChecksums=true so checksums should be available:
https://jitpack.io/com/github/ahorn/android-rss/v1.0-rc1/android-rss-v1.0-rc1.jar.sha1

commented

@jitpack-io, thanks very much for #25.

commented

Hi @lucasfarre @danielesegato, @warmwaffles @jitpack-io

For some time now, I wanted to update the README with some contributor information, and references to projects/products that are using android-rss. If you are willing to share any of this information, please feel free to provide the following, or a subset thereof:

  • Your name and/or organization you would like to be mentioned;
  • The project name, or product, that is using android-rss.

Many thanks again for your contributions!