Parse-SDK-Android icon indicating copy to clipboard operation
Parse-SDK-Android copied to clipboard

Publish to Maven Central repository

Open mtrezza opened this issue 3 years ago • 8 comments

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

mtrezza avatar May 25 '22 17:05 mtrezza

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@parse-community/android-sdk Any suggetions?

mtrezza avatar May 25 '22 17:05 mtrezza

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.

rommansabbir avatar May 25 '22 17:05 rommansabbir

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

Jawnnypoo avatar May 25 '22 18:05 Jawnnypoo

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

rommansabbir avatar May 28 '22 07:05 rommansabbir

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.

mtrezza avatar May 28 '22 07:05 mtrezza

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 😜

Jawnnypoo avatar May 28 '22 19:05 Jawnnypoo

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.

Shvet avatar Aug 01 '22 14:08 Shvet