Skip to content
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

Maven Central #76

Closed
ZooMMaX opened this issue Dec 22, 2022 · 15 comments
Closed

Maven Central #76

ZooMMaX opened this issue Dec 22, 2022 · 15 comments

Comments

@ZooMMaX
Copy link

ZooMMaX commented Dec 22, 2022

Please publish the library to maven central

@hannesa2
Copy link
Collaborator

hannesa2 commented Dec 23, 2022

I see the issue, because jitpack.io is done since 24 h and not everyone has the lib in cache.
To be honest, till now I was to lazy to publish to mavenCentral() and I've the fear that I've make a hard fork of upstream because of this. So the question is, what's the minimum change to make it work ?

@hannesa2
Copy link
Collaborator

hannesa2 commented Dec 23, 2022

Ok, following this guide, I did the first step https://issues.sonatype.org/browse/OSSRH-87292

@drachim-dev
Copy link

We are depending on this library and your fork of paho.mqtt.
As jitpack.io has been proven to be unreliable, it would be awesome if you could publish to mavenCentral or github packages :)
Thanks for maintaining those libraries!

@hannesa2
Copy link
Collaborator

jitpack.io is back again

@hannesa2
Copy link
Collaborator

@drachim-dev

it would be awesome if you could publish to mavenCentral or github packages :)

Sure, I see this issue as well. Btw, helping hands are always welcome. I currently try to use github packages, but I don't know exactly how to use it. I only know since 1h about the existence. Please see my experiments #78
With mavenCentral() I wait for a response

@drachim-dev
Copy link

drachim-dev commented Dec 23, 2022

@drachim-dev

it would be awesome if you could publish to mavenCentral or github packages :)

Sure, I see this issue as well. Btw, helping hands are always welcome. I currently try to use github packages, but I don't know exactly how to use it. I only know since 1h about the existence. Please see my experiments #78 With mavenCentral() I wait for a response

Same for me, heard about it in the jitpack issue!
There has just been a reply to your submit on mavenCentral btw

@ZooMMaX
Copy link
Author

ZooMMaX commented Dec 23, 2022

Unfortunately I don't know how to publish to mavencentral using gradle. I mainly use maven builder and there i know how to publish

@ZooMMaX
Copy link
Author

ZooMMaX commented Dec 23, 2022

Okay. The sonotype replied that the group id was incorrect. Change from mxtracks.info to info.mxtracks

@ZooMMaX
Copy link
Author

ZooMMaX commented Dec 23, 2022

@hannesa2
Copy link
Collaborator

As a first step https://github.com/AppDevNext/AndroidChart/releases/tag/3.1.0.12 is now published

Please read README.md for details

Next will be mavenCentral() I hope it comes with better error messages like Github packages . There the error messages were somehow misleading

@ZooMMaX
Copy link
Author

ZooMMaX commented Dec 23, 2022

Fine. Now you have an account in maven central. It remains to configure the gradle for publishing packages)

Also, I think you'll have to change the package name to info.mxtracks.etc...

@hannesa2
Copy link
Collaborator

I'm not 100 % convinced if the huge afford make sense. When the upstream maintainer change something, all my afford is pointless. The risk is high !

For me the current situation is fine, that means that the publish to mavenCentral() I do for someone else. Any help would be very appreciate #80

@hannesa2
Copy link
Collaborator

Any help is welcome here #82

@hannesa2
Copy link
Collaborator

This is the most promising blueprint https://github.com/ViliusSutkus89/Sample_Android_Library-MavenCentral-Instrumented_Tests/ but I give up now. (I wasted to much lifetime)
This #85 and #82 are able to push to https://s01.oss.sonatype.org/#stagingRepositories
image

But I've no clue how to bring it to https://oss.sonatype.org or how to use it like
implementation 'info.mxtracks:chart:3.1.0.12'

@hannesa2
Copy link
Collaborator

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

No branches or pull requests

3 participants