Fork me on GitHub
#graalvm
<
2023-09-27
>
mkvlr12:09:02

trying to use https://central.sonatype.com/artifact/org.graalvm.polyglot/js according to https://www.graalvm.org/latest/reference-manual/embed-languages/. Anyone spot my mistake here?

clj -Sdeps '{:deps {org.graalvm.polyglot/js {:mvn/version "23.1.0"}}}'
Error building classpath. Could not find artifact org.graalvm.polyglot:js:jar:23.1.0 in central ()

mkvlr12:09:19

or are they using some maven features that tools.deps does not support? It does download some pom files initially…

Alex Miller (Clojure team)13:09:58

tools.deps only supports the jar package type - is that something else?

Alex Miller (Clojure team)13:09:34

Yeah that’s a pom artifact

borkdude13:09:26

@U5H74UNSF so it seems listing deps explicitly would work?

mkvlr13:09:00

maybe? I know nothing about pom deps so I don’t know where to start

borkdude13:09:18

I read the ask issue and saw it there

borkdude13:09:53

Perhaps use mvn deps tree or whatever their command is and then insert those deps in your deps.edn

borkdude13:09:16

Or look up on mvn central what their transitive deps are

mkvlr13:09:11

ok, so {:deps {org.graalvm.js/js-language {:mvn/version "23.1.0"}}} works

mkvlr13:09:40

@alexmiller thanks a lot, also for StrangeLoop, I had a great time! 🙏

👍 3
Dumch21:09:29

Does anyone have a simple example how to build executables for all the platform (osx, windows, linux)?

borkdude21:09:43

jet is a pretty simple project which builds for all platforms: https://github.com/borkdude/jet

1
💡 1
borkdude21:09:06

babashka and clj-kondo are two others that are available for all platforms

Ingy döt Net22:09:45

There's no cross compilation. They suggest using GHA.

Ingy döt Net23:09:46

Did you need to supply your own runner(s)?

Ingy döt Net23:09:39

That action looks pretty cool.

Dumch23:09:52

No, I did nothing. I just googled out actions that I could use, and It worked immediatelly

🙌 1
borkdude07:10:53

I beter is based on qemu which is crap slow