Fork me on GitHub
#clojure-dev
<
2024-02-14
>
Ingy döt Net20:02:15

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?

hiredman20:02:22

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

borkdude20:02:06

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

Ingy döt Net21:02:59

@borkdude also suggested #C0H28NMAS 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)22:02:10

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)22:02:42

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

Ingy döt Net22:02:50

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)22:02:51

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)22:02:33

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 Net22:02:27

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)22:02:53

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

Ingy döt Net22:02:38

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

Alex Miller (Clojure team)22:02:46

again, still not sure why any of this is relevant

Ingy döt Net22:02:48

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)22:02:35

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

Ingy döt Net22:02:39

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

Alex Miller (Clojure team)22:02:50

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 Net22:02:35

If you scroll down do you see my account registration?

Alex Miller (Clojure team)22:02:44

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

Ingy döt Net22:02:16

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

Ingy döt Net22:02:20

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