android-rss icon indicating copy to clipboard operation
android-rss copied to clipboard

Gradle support + AAR on maven?

Open danielesegato opened this issue 11 years ago • 26 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

danielesegato avatar Jan 29 '14 16:01 danielesegato

Hi Daniele,

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

With kind regards, Alex

ahorn avatar Jan 29 '14 16:01 ahorn

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

danielesegato avatar Feb 11 '14 16:02 danielesegato

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

ahorn avatar Feb 11 '14 17:02 ahorn

Any updates on this?

warmwaffles avatar Oct 06 '14 17:10 warmwaffles

@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 avatar Oct 06 '14 17:10 ahorn

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

warmwaffles avatar Oct 06 '14 21:10 warmwaffles

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

ahorn avatar Oct 06 '14 21:10 ahorn

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.

warmwaffles avatar Oct 06 '14 21:10 warmwaffles

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

a1exus avatar Mar 05 '15 20:03 a1exus

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

ahorn avatar Mar 06 '15 17:03 ahorn

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

danielesegato avatar Mar 07 '15 10:03 danielesegato

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 avatar Mar 07 '15 10:03 ahorn

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

a1exus avatar Mar 09 '15 03:03 a1exus

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

ahorn avatar Mar 09 '15 09:03 ahorn

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

a1exus avatar Mar 09 '15 19:03 a1exus

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

jitpack-io avatar Mar 28 '15 21:03 jitpack-io

@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.

ahorn avatar Apr 05 '15 17:04 ahorn

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.

danielesegato avatar Apr 07 '15 08:04 danielesegato

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 avatar Apr 07 '15 08:04 ahorn

@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.

a1exus avatar Apr 08 '15 03:04 a1exus

Thanks @a1exus. Anyone else?

ahorn avatar Apr 08 '15 08:04 ahorn

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!

lucasfarre avatar Apr 09 '15 00:04 lucasfarre

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 avatar Apr 09 '15 08:04 ahorn

@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

jitpack-io avatar Apr 09 '15 10:04 jitpack-io

@jitpack-io, thanks very much for https://github.com/ahorn/android-rss/pull/25.

ahorn avatar May 10 '15 00:05 ahorn

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!

ahorn avatar Oct 21 '17 16:10 ahorn