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

Publish on Maven #16

Closed
oberstet opened this issue Aug 22, 2012 · 28 comments
Closed

Publish on Maven #16

oberstet opened this issue Aug 22, 2012 · 28 comments
Assignees

Comments

@oberstet
Copy link
Contributor

To get the AutobahnAndroid artifact into the maven central repository you should use the facilities offered by oss.sonatype.org.
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

That should help you understand how to get the artifact and all associated metadata up to oss.sonatype.org, once you are happy with it, you can request that your artifacts be synced to Maven Central http://repo.maven.org/

FYI, sonatype.org is run by many Apache Maven committer and PMC members, they do a great job in helping out the open source community.

@bcurren
Copy link

bcurren commented Oct 9, 2013

Anything I can do to help make this happen? It would be really nice to have this project on Maven Central. Let me know how I can help and I'll make the necessary changes.

@oberstet
Copy link
Contributor Author

Forgot, it's already there:

https://github.com/tavendo/AutobahnAndroid/tree/master/Autobahn
https://oss.sonatype.org/content/repositories/snapshots/de/tavendo/autobahn-android/

Since this is some time ago, and I forgot everything about Maven, could you check if that works as expected?

If so, I'd close the issue ..

@jcxavier
Copy link

Although the 0.5.2-SNAPSHOT is in sonatype, it isn't available in Maven Central (search.maven.org), and unless you specify a repository for dependencies with snapshots you aren't be able to use it as a regular drop-in dependency. My company policies for instance forbids libraries with this type of dependencies.

This being said, it would be great if there was both a non-SNAPSHOT version and also synced with Maven Central.

@Velfolt
Copy link

Velfolt commented Jul 8, 2014

Pretty please make this happen. It's a burden not to have every library on Maven.

@mars3142 mars3142 mentioned this issue Oct 24, 2014
@mars3142
Copy link

Like jcxavier said, please make it a non-SNAPSHOT build and the current master branch could be a SNAPSHOT as well.

@benjamindittwald
Copy link

That's really an issue! Please make it happen that we can use a maven repo for the development with autobahn.

@bjenning04
Copy link

+1, would really like to be able to pull this into my team's Android Gradle project through Maven.

@disciple97
Copy link

+1, really appreciate it.

@pielambr
Copy link

+1, would be nice for use with Gradle

@mars3142
Copy link

I found a new service, which creates maven/gradle usage on the fly from git-hashes or github release tags: https://jitpack.io/#tavendo/AutobahnAndroid/v0.5.2

@renetik
Copy link

renetik commented Jun 1, 2015

mars3142 cool , this works , is there some drawbacks? like slower build time or something ?

@mars3142
Copy link

mars3142 commented Jun 1, 2015

Don't know. The tool isn't from me. Just contact the creator: jitpack@jitpack.io ;)

@James-Firth
Copy link

+1 would also like to have this available for use with gradle

@abcdeiko
Copy link

abcdeiko commented Jul 8, 2015

mars3142, don't use Autobahn from jitpack.io, it uses wrong old version.
This is my post on SO http://stackoverflow.com/a/30777724/3363782

@oberstet
Copy link
Contributor Author

Sorry guys, I long left Java/Android .. I have no idea what's the latest rage in Java package hosting / distribution.

Is it Maven, jitpack, whatnot?

But I agree: whatever the current preferred hosting for Android devs is, we should support that.

I am leaving this open .. it should be addressed as part of #92

@oberstet oberstet changed the title Add to Maven repo Publish on Maven (and possible others) Apr 10, 2016
@oberstet oberstet added the v2 label Apr 10, 2016
@renetik
Copy link

renetik commented Apr 10, 2016

Well jitpack is workaround when it is not on maven . maven is standard , nothing new here ... just support maven properly !

@oberstet
Copy link
Contributor Author

@rene-dohan alright. then Maven. sorry for confusion, I am not following things in the Java world closely ..

@oberstet oberstet changed the title Publish on Maven (and possible others) Publish on Maven Apr 11, 2016
@Muyangmin
Copy link

@oberstet MavenCentral is a good choice, either jcenter. Btw, jcenter is the default repository for android projects now.

@jgamedev
Copy link

I see that 0.5.2 is now available thru jitpack: https://jitpack.io/#crossbario/autobahn-android
I'll just say for me personally it sucks to be late to the websocket party and not know what ppl are using for Android.

@zjulia
Copy link

zjulia commented Aug 31, 2016

Have there been any updates on this issue?

@bvolpato
Copy link

Any updates?

@om26er
Copy link
Contributor

om26er commented Sep 10, 2017

Any updates?

We are working on this, I'll try to get a test version uploaded to a central repo this week.

@oberstet
Copy link
Contributor Author

@om26er the groupId for the project has been created https://issues.sonatype.org/browse/OSSRH-34508

@oberstet
Copy link
Contributor Author

@ALL interested in this: ok, we have the groupId on sonatype. now, actually uploading a bunch of jars seems to be ridiculously complicated https://docs.gradle.org/current/userguide/publishing_maven.html

what we would like to have is a target in the Makefile like publish_maven that uploads JARs left in a local directory to maven.

anyone with active knowledge in this stuff who could help out?

@joeystdio
Copy link

joeystdio commented Sep 28, 2017

Hi Oberstet, here is a step by step guide to follow for your case:
http://central.sonatype.org/pages/gradle.html

But there are also plugins to help you with this:
https://github.com/Codearte/gradle-nexus-staging-plugin/
and
https://github.com/bmuschko/gradle-nexus-plugin/

If you need any assistance let me know.

@om26er
Copy link
Contributor

om26er commented Sep 30, 2017

The library will be published under io.crossbar.autobahn group with multiple sub packages, namely:

  1. autobahn-android
  2. autobahn-java(or -netty)

So for consumers the "import" line in their build.gralde look like

implementation 'io.crossbar.autobahn:autobahn-android:17.X.X'

Given Android studio defaults to JCenter() as its default repository, I suggest that we should take the generic approach here i.e: Upload to Bintray and from there Sync to both JCenter and Maven Central. That will give us a streamlined workflow.

@om26er om26er self-assigned this Oct 2, 2017
@om26er
Copy link
Contributor

om26er commented Oct 2, 2017

Autobahn is now published to JCenter, we'll sync to Maven Central from there.

@om26er
Copy link
Contributor

om26er commented Oct 2, 2017

We are now on both JCenter and Maven. http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.crossbar.autobahn%22

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