scalajs-io / nodejs

This project provides Scala.js type-safe bindings for Node.js (current) v8.7.0 and LTS v6.11.4 APIs. The platform supports MEAN (MongoDB, Express, AngularJs, NodeJS), Cassandra, MySQL and many other npm projects.
Apache License 2.0
163 stars 28 forks source link

jars on sonatype #2

Closed daenenk closed 8 years ago

daenenk commented 8 years ago

Nice work. I would like to see you jars on https://oss.sonatype.org/content/groups/public/com/github/ rather than having to build them locally.

ksberg commented 8 years ago

ditto: from build instructions ... sbt.ResolveException: unresolved dependency: com.github.ldaniels528#scalajs-common_sjs0.6_2.11;0.2.0: not found

daenenk commented 8 years ago

Had the seem experience. When you first build locally as in the build instructions and then use libraryDependencies += "com.github.ldaniels528" %%% "scalajs-nodejs-express" % "0.2.1" i.s.o. 0.2.0 in your own build.sbt file, it will work. Still it would be better if we would not have to build it locally and just fetch the jar from sonatype.

ldaniels528 commented 8 years ago

Just add the following to your build.sbt:

resolvers += "releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"

ldaniels528 commented 8 years ago

BTW, I just released v0.2.1, which contains quite a few fixes.

Voltir commented 8 years ago

I have that resolver on my path and it still fails to fetch - and normally I just go look at the various urls to figure out what I might have missed, but in this case I get an authentication error when trying to browse directly to, eg: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/ldaniels528/scalajs-nodejs-crypto_sjs0.6_2.11/

Also, that url looks a little funny to me, having the release on /local/staging seems not quite right..

ldaniels528 commented 8 years ago

I'm pretty new to the concept of publishing resources; however, I just tested the latest release myself (0.2.2.2) using the resolver below, and it works perfectly.

resolvers += "releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"

sjrd commented 8 years ago

Staging releases disappear after some time. You should release your staging repo (e.g. from the OSS "Nexus" interface) so that they are consolidated as Maven artifacts on Maven Central, and do not disappear.

ldaniels528 commented 8 years ago

I'm logged into oss.sonatype.org, but I'm having trouble figuring out how to promote my code to release... I've reach out to their support staff for help. I'll keep you guys posted.

sjrd commented 8 years ago

@ldaniels528 This should explain it all: http://central.sonatype.org/pages/releasing-the-deployment.html

ldaniels528 commented 8 years ago

Version 0.2.3.1 has been publicly released via Sonatype.