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 artifacts in oss sonatype #16

Closed
larroy opened this issue Jan 28, 2015 · 20 comments · Fixed by #22
Closed

Publish artifacts in oss sonatype #16

larroy opened this issue Jan 28, 2015 · 20 comments · Fixed by #22

Comments

@larroy
Copy link

larroy commented Jan 28, 2015

Hi

I have opened this to get org.capnproto so we can publish the jars

https://issues.sonatype.org/browse/OSSRH-13527

@dwrensha
Copy link
Member

I guess this is that "central Maven repository" that everyone talks about? Thanks for getting the ball rolling. I'll need to read up on this.

A couple of specific things I'm wondering about:

  1. what should we do about the C++ component, capnpc-java?
  2. what's the story for when we want to add another package in the future, like capnproto.org.rpc?
  3. what do I need to do? Should I be signing up for an account on issues.sonatype.org?

@larroy
Copy link
Author

larroy commented Jan 31, 2015

Thank you for your work on the java plugin, unfortunately the wonderful world of maven sbt and jars sometimes gets me confused, so I also learn along the way.

When using the project I found that it would be desirable to 1. deliver the jar so people can include in their deps, hence the activity of this ticket.

  1. When I created the files from the schemas everything worked, but calling the tool from capnproto-java repository is not ideal, as the repo location is machine dependent. I'm talking about having to do something like:

    CAPNPJAVA=/home/piotr/devel/capnproto-java
    for i in *.capnp;
    do
    capnp compile -I $CAPNPJAVA/compiler/src/main/schema/ -I . -o$CAPNPJAVA/capnpc-java:../src/main/java/generated $i
    done

Regarding 2) I'm not sure, maybe deploy another artifact in that namespace? I guess that would work and keep both depdendencies separate.

  1. I also need to figure out how this works, ideally you should have access so you can deploy, I'll try to figure out more.

  2. Didn't look much into the C++ component, what do you want to do with it? it could also be compiled and deployed into a jar there...

I really enjoyed your videos about capnproto in rust, thanks!

@dvdreddy
Copy link

I saw that the oss jira is resolved, any info about the timeline of publishing the jars to oss ? It will help us a lot in adding the dependencies

@larroy
Copy link
Author

larroy commented Feb 18, 2015

I'm trying to figure out how to publish to oss, any help would be welcome

https://issues.sonatype.org/browse/OSSRH-13527

@dvdreddy
Copy link

Hi I made a pull request based on the http://www.scala-sbt.org/0.13/docs/Publishing.html

you may need to add your OSS credentials as in http://www.scala-sbt.org/0.13/docs/Publishing.html#Credentials
and pgp credentials as in http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html#First+-+PGP+Signatures

after that I guess publishSigned will publish the runtime jar to OSS and we may just need to promote the staging artifact to release

I have tried the publish command and it is just failing at the credential stage as I have not put any credentials, I guess with proper credentials this should work

@dwrensha
Copy link
Member

I'm trying to get this working using @dvdreddy's patch. I think I'm just blocked on not having authorization to push to the sonatype repo. @larroy, I think you have the power to grant me that authorization. Could you please try to do that? My username on Sonatype is "dwrensha", the same as it is here.

@dwrensha
Copy link
Member

For what it's worth, this is the error I get when I do $ sbt runtime/publishSigned:

[error] (runtime/*:publishSigned) java.io.IOException: Access to URL https://oss.sonatype.org/content/repositories/snapshots/org/capnproto/runtime/0.1.0-SNAPSHOT/runtime-0.1.0-SNAPSHOT.pom was refused by the server: Forbidden

@larroy, if you figure out a way to publish this without giving me push authorization, that's cool too.

@larroy
Copy link
Author

larroy commented Feb 24, 2015

@larroy
Copy link
Author

larroy commented Feb 24, 2015

Followed the documentation in: http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html

Sent my key with:
gpg --keyserver pool.sks-keyservers.net --send-keys "keyid"

@nchinmay
Copy link

How does it work with maven? What lines do you have to add to pom.xml to get this artifact?

@larroy
Copy link
Author

larroy commented Feb 24, 2015

@larroy
Copy link
Author

larroy commented Feb 24, 2015

@dwrensha what's your oss username so you can publish?

@dwrensha
Copy link
Member

I signed up as "dwrensha".

@larroy
Copy link
Author

larroy commented Feb 25, 2015

Ok, can you please merge the pull request?

@dwrensha
Copy link
Member

dwrensha commented Mar 3, 2015

I just successfully uploaded a new snapshot. Thanks again for pushing this through, @larroy!

@nchinmay
Copy link

nchinmay commented Mar 3, 2015

Is there a new windows C++ executable?

@dwrensha
Copy link
Member

dwrensha commented Mar 4, 2015

@nchinmay: no, the schema compiler plugin didn't change, so there's no new capnpc-java.exe. We should make this more discoverable. I just opened #24.

@jen20 jen20 mentioned this issue Apr 9, 2015
@larroy
Copy link
Author

larroy commented Apr 13, 2015

@dwrensha thanks for making this open source!

@dwrensha
Copy link
Member

dwrensha commented Dec 7, 2015

Update: version 0.1.0 (not a snapshot) is now released: https://search.maven.org/#artifactdetails%7Corg.capnproto%7Cruntime%7C0.1.0%7Cjar

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

Successfully merging a pull request may close this issue.

4 participants