cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 158 forks source link

Publish to JSweet to Maven Central #565

Closed bdemers closed 4 years ago

bdemers commented 4 years ago

Please ;) https://central.sonatype.org/pages/ossrh-guide.html

lgrignon commented 4 years ago

Hello @bdemers JSweet is already published to bintray (I just updated the published versions so you can enjoy the last 2.3.5). It should be enough, why do you want JSweet to be published rather on Sonatype's central?

lgrignon commented 4 years ago

I noticed the Bintray's feature to sync artifacts to central. It seems to work seemlessly now, I will give it a try for JSweet artifacts.

lgrignon commented 4 years ago

There are some requirements to match: https://central.sonatype.org/pages/requirements.html This implies modifications in project and is not high priority IMHO.

Could you please close issue to confirm that Bintray's jcenter is working for you? https://bintray.com/bintray/jcenter?filterByPkgName=jsweet-*

bdemers commented 4 years ago

In general, I avoid using 3rd party artifact repositories. for a few reasons,

1.) ease of use, It's the default repo for Maven installations (Apache Maven uses the URL https://repo.maven.apache.org/maven2/ which has some oversite by the Maven project) 2.) Quality, I know If I use artifacts from central there are minimum requirements met, signed artifacts, etc 3.) If I wanted to put a library in Central, but I was dependent on a library out of central it provides a poor user experience (IIRC this was blocked at one point).

Which requirements are you missing? Maybe I can help?

lgrignon commented 4 years ago

Got you. It is basically about making pom ready for central if it does not meet the requirements yet, and also signing those artifacts.

lgrignon commented 4 years ago

Just as a side info, the error I get from central when I try to publish from bintray is

image

so I guess signing would do the trick :)

lgrignon commented 4 years ago

I finally succeeded in signing those jars.

image

lgrignon commented 4 years ago

Ok, I got it

image

For now, it's just jsweet-transpiler artifact. I will publish on central the other main artifacts soon:

However, it is not realistic to have all JSweet candies published to maven central because there are a lot of them and publishing to maven central is a manual operation. JSweet without candies is not really JSweet, but main artifacts will at least be available on central, and users requiring candies can use the 3rd party repository.

bdemers commented 4 years ago

It's a great start!

lgrignon commented 4 years ago

Yeay https://repo.maven.apache.org/maven2/org/jsweet/jsweet-transpiler/

lgrignon commented 4 years ago

Here you go: https://repo.maven.apache.org/maven2/org/jsweet/