clojure-dev

Ingy döt Net 2024-02-14T20:48:15.915009Z

Greetings. I need help getting a Java library shipped to Maven Central. Hoping to find some help here. I'll give the background. I'm in the middle of writing a new programming language called YAMLScript (YS) that basically compiles to Clojure code and uses @borkdude’s SCI to evaluate it. The YS compiler is written in Clojure. It's native-image compiled into a binary called ys , similar to Babashka's bb. YS also works as a YAML loader library in many programming languages like Python and Rust. I native-image compile it to a shared library libyamlscript.so (LYS) and have written FFI binding libraries in several programming languages. The latest binding modules are for Java and Clojure. The Java lib is a JNA binding to LYS and I want to ship it to Maven Central. The Clojure library uses the Java library as a dependency and I will ship it to Clojars. I have published to Clojars before. Sorry for the long winded intro. I know there are different ways to do this, but this is what I want for now at least... My need is figuring out how to ship to Maven Central, and wondering if anyone here could help. I created an account on http://sonatype.org in July 2022. And I have the publishing group is io.yaml. But logging in there today, it looks like they are reorganizing under http://sonatype.com. Can anyone here point me at some material that would make the act of publishing to Maven Central as painless as possible in 2024?

2024-02-14T20:53:22.069039Z

#clojure-dev is generally about development of clojure itself, language features etc

borkdude 2024-02-14T20:56:06.733209Z

I redirected him here since clojure authors publish to maven central, so the blame is on me :)

Ingy döt Net 2024-02-14T21:00:59.727839Z

@borkdude also suggested #clojars I can try there as well. But if anyone here publishes to maven central and is willing to give me a little help, I'd appreciate it.

Alex Miller (Clojure team) 2024-02-14T22:15:10.648209Z

I agree that this is not the place for this thread but .. I'm confused if you are asking about shipping the Java lib or Clojure lib Maven Central?

Alex Miller (Clojure team) 2024-02-14T22:15:42.736439Z

sounds like the Java and if so, surely there are resources for this on the web already?

Alex Miller (Clojure team) 2024-02-14T22:16:42.590989Z

https://central.sonatype.org/publish/publish-guide/ etc

Ingy döt Net 2024-02-14T22:16:50.617929Z

There are but my main thing is I don't know if I should be using http://sonatype.org or http://sonatype.com

Alex Miller (Clojure team) 2024-02-14T22:18:16.040429Z

use for .... ?

Alex Miller (Clojure team) 2024-02-14T22:18:51.542469Z

http://sonatype.com is the web site for the Sonatype company which does Maven stuff (and other stuff), and runs the central repo

Alex Miller (Clojure team) 2024-02-14T22:19:14.857739Z

https://oss.sonatype.org is the upload repo for Maven central

Alex Miller (Clojure team) 2024-02-14T22:20:33.080619Z

but if you've already claimed the group, you don't really need the web site, you can use the Maven tooling (or even curl) to upload

Ingy döt Net 2024-02-14T22:22:27.068719Z

I can't seem to login to http://oss.sonatype.org But I did login to http://issues.sonatype.org Also that site says > Sonatype has begun the retirement process for http://issues.sonatype.org. which concerned me

Alex Miller (Clojure team) 2024-02-14T22:22:53.110969Z

that sounds like the issue site, which is irrelevant for uploads

Ingy döt Net 2024-02-14T22:23:38.922309Z

true. but surely my login creds should work for oss. too

Alex Miller (Clojure team) 2024-02-14T22:24:46.854229Z

again, still not sure why any of this is relevant

Ingy döt Net 2024-02-14T22:24:48.798359Z

When I read the retirement thing I was wondering if other things were being retired as well. So I asked people here, but to my surprise almost nobody has interacted with maven central

Alex Miller (Clojure team) 2024-02-14T22:25:35.277519Z

maven central is essential to half the software on the planet, it's not being retired

Ingy döt Net 2024-02-14T22:29:39.049059Z

When I try to login to http://oss.sonatype.org I get > Incorrect username, password or no permission to use the Nexus User Interface. > Try again.Forbidden

Ingy döt Net 2024-02-14T22:32:09.133639Z

Same for login at https://repository.sonatype.org/

Ingy döt Net 2024-02-14T22:33:39.851199Z

But same creds work fine for https://issues.sonatype.org/login.jsp

Alex Miller (Clojure team) 2024-02-14T22:33:50.545229Z

there is a bunch of text there with links to pages that explain the current status and what you need to do

Ingy döt Net 2024-02-14T22:34:35.821859Z

If you scroll down do you see my account registration?

Alex Miller (Clojure team) 2024-02-14T22:35:44.847349Z

sorry, I have other things to do ... I think you can figure that out from the stuff that's here

Ingy döt Net 2024-02-14T22:36:16.484619Z

Anyway, knowing that http://sonatype.org is correct and not http://sonatype.com is reassuring.

Ingy döt Net 2024-02-14T22:37:20.322829Z

Sorry to use up your time. It's just frustrating and was hoping to chat with someone who does this all the time...