parse-community / Parse-SDK-Android

The Android SDK for Parse Platform
https://parseplatform.org/
Other
1.88k stars 739 forks source link

Publish to Maven Central repository #1171

Open mtrezza opened 2 years ago

mtrezza commented 2 years ago

New Feature / Enhancement Checklist

Current Limitation

Google published their new Google Play SDK Index to help developers evaluate (potential) SDKs for their projects. Parse Android SDK is not listed there, as one hard requirement seems to be that the SDK is published to Maven Central.

We used to publish on Maven Central initially, but then stopped some years ago (for reasons currently unknown). The last releases there are from 2018.

Feature / Enhancement Description

Publishing releases to Maven Central, instead of Jitpack, or maybe in addition to Jitpack if there is a good reason.

Example Use Case

n/a

Alternatives / Workarounds

n/a

parse-github-assistant[bot] commented 2 years ago

Thanks for opening this issue!

mtrezza commented 2 years ago

@parse-community/android-sdk Any suggetions?

rommansabbir commented 2 years ago

I need to learn about the process, so that I can contribute with the publication process. (Publish to Maven Central repository #1171) as I'm experienced with JitPack at this time.

Jawnnypoo commented 2 years ago

You'd have to get the owner of https://parseplatform.org/ to change some DNS settings so that the domain could be verified. The dependency would have to be something like org.parseplatform.* instead of com.parse-community or com.parse. See all instructions here: https://central.sonatype.org/publish/publish-guide/#introduction

rommansabbir commented 2 years ago

@mtrezza I have reviewed the Maven Central Publication Process and found out a Libray that makes the whole process eaiser with just a Gradle Plugin.

Article: https://www.waseefakhtar.com/android/publishing-your-first-android-library-to-mavencentral/ Library: https://github.com/vanniktech/gradle-maven-publish-plugin

Take a look at this. Thanks.

mtrezza commented 2 years ago

There are also docs how to publish that in GitHub Actions: https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-maven

Looks pretty simple.

Jawnnypoo commented 2 years ago

Publishing is the simple part for sure! Here I have a configuration that publishes when I make a tag in Git.

https://github.com/Commit451/ResourcesPoet/blob/master/.github/workflows/publish-release.yml

The setup/access is the hard part 😜

Shvet commented 1 year ago

You can publish any library for free on maven or jitpack if it is open source, as for private sdk's you may need enterprise account. As for how to publish sdk i think there are lots of scripts out there already also we can have Developer Page for reference.