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

Publish to Maven Central

Open arkon opened this issue 4 years ago • 10 comments

Bintray is getting sunsetted on May 1st, 2021: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

arkon avatar Feb 04 '21 04:02 arkon

Thanks! that's unfortunate news will work to publish the library on maven central instead.

npurushe avatar Feb 04 '21 06:02 npurushe

Alternatively, instead of using another 3rd party, it could be that the internet allows this area to be simplified using new functionality

Gradle itself appears to allow addition of git repos https://stackoverflow.com/a/56787382/9910298

...and/or there is jitpack.io which does the same

I find working with Sonatype / Maven OSS repo to be fairly cumbersome personally and I'd avoid it as a maintainer. Sure it works, I do use it, but if jitpack or a direct dependency worked, simpler IMHO.

Outstanding question would be, does it handle the native compilation?

mikehardy avatar Feb 04 '21 15:02 mikehardy

I tried doing the gradle source reference thing but:

  • the compile is pretty slow, it would be nice to not have to do that
  • the NDK is huge! I would only need it for this. Plus the version in the build.gradle here is outdated, would be nice to have a more current one at least
  • the build does not appear to be gradle 7 compatible, which is a bummer because I just finished forward-porting to gradle 7

All of those things are the reasons we use compiled dependencies so I took a different line and got it to work on jitpack: https://jitpack.io/com/github/mikehardy/sqlite-android/3.35.1.1/build.log

You can already depend on this artifact and try it if you like:

    implementation 'com.github.mikehardy:sqlite-android:3.35.1.1'

I'll PR the differences over here, then all that needs to happen in the future is tagging the builds (or I guess people can use commit hashes off main branch if needed, but tags are more appealing)

mikehardy avatar Apr 16 '21 03:04 mikehardy

Thanks! that's unfortunate news will work to publish the library on maven central instead.

Any progress on this? @npurushe

heybradharris avatar Jun 18 '21 22:06 heybradharris

It's closed because it's resolved, it's on jitpack.io not maven central though, examine updated instructions and everything @heybradharris https://github.com/requery/sqlite-android/#usage

mikehardy avatar Jun 19 '21 13:06 mikehardy

It's closed because it's resolved, it's on jitpack.io not maven central though, examine updated instructions and everything @heybradharris https://github.com/requery/sqlite-android/#usage

I did not see that the group name changed to com.github.requery. Thank you for the reply!

heybradharris avatar Jun 21 '21 16:06 heybradharris

I realize the project publishes to jitpack, however, is there any appetite to revisit also publishing to Maven Central? We don't use jitpack on our project given the not quite immutable nature of artifacts, so being accessible somewhere else would be helpful.

kierse avatar Aug 04 '22 17:08 kierse

Yes this could be possible, will reopen the issue

npurushe avatar Aug 05 '22 08:08 npurushe

@npurushe would you be up for a PR to add this support? I could structure it like we do in our projects (https://github.com/slackhq/eithernet for example) using this plugin: https://github.com/vanniktech/gradle-maven-publish-plugin

ZacSweers avatar Aug 05 '22 16:08 ZacSweers

Yes feel free to submit a PR

npurushe avatar Aug 06 '22 18:08 npurushe

@npurushe My PR was merged but the latest releases are still not published on maven central. Did you change your mind?

ZacSweers avatar Jun 24 '23 21:06 ZacSweers

I think there are some manual processes for publishing to maven central that need to be started to make this work, sorry about the delay will try to look into this next week

npurushe avatar Jul 01 '23 20:07 npurushe

Is 3.43.0 published to Maven Central?

plnice avatar Aug 29 '23 08:08 plnice

Is 3.45.0 published to Maven Central?

plnice avatar Jan 22 '24 11:01 plnice