Is the `maven_push.gradle` by Chris Banes still a ...
# android
s
Is the
maven_push.gradle
by Chris Banes still a good way to push aars to maven central? Also, https://github.com/quiph/RecyclerView-FastScroller
👌 1
❤️ 1
j
"If it ain't broke..." as they say
s
Agreed @jw. Also, what do you prefer? 1. jcenter -> maven central 2. sonatype nexus -> maven central or are they both the same? i feel one should take 1 if they wish to keep the aar hosted on jcenter as well, but not sure.
j
jcenter proxies maven central so releasing directly to maven central doesn't prevent your artifact from being consumed through it
s
oh. did not know that. thank you.
s
@suraj I made a plugin for that some time ago https://github.com/technoir42/aar-publish-plugin. It's designed to be used together with
maven-publish
. One advantage over gradle-mvn-push is that
maven-publish
automatically registers a task which publishes to mavenLocal. The plugin is also variant-aware so if you have any variant-specific sources they will be included in sources jar.
s
@Sergey Chelombitko very interesting, i'll keep this in mind for the next release. thanks.
@Gil Goldzweig there's a todo section in the end, which is basically making the fast-scroller work in horizontal direction, if you wish to contribute.
g
Asked a followup question on the opened issue
👍 1